mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Test:disable lookahead in isStartOfParameter
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user