Test:disable lookahead in isStartOfParameter

This commit is contained in:
Nathan Shively-Sanders
2017-09-06 15:54:14 -07:00
parent 7c69dd84b9
commit a5c2eac2ee
8 changed files with 60 additions and 22 deletions

View File

@@ -2238,12 +2238,6 @@ namespace ts {
isIdentifierOrPattern() ||
isModifierKind(token()) ||
token() === SyntaxKind.AtToken ||
// a jsdoc parameter can start directly with a type, but shouldn't look ahead
// in order to avoid confusion between parenthesized types and arrow functions
// eg
// declare function f(cb: function(number): void): void;
// vs
// f((n) => console.log(n));
isStartOfType(/*disableLookahead*/ true);
}