File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -5484,11 +5484,7 @@ namespace ts {
5484
5484
}
5485
5485
5486
5486
function parseDeclaration ( ) : Statement {
5487
- const [ decorators , modifiers ] = lookAhead ( ( ) => [
5488
- parseDecorators ( ) ,
5489
- parseModifiers ( ) ,
5490
- ] ) ;
5491
-
5487
+ const modifiers = lookAhead ( ( ) => ( parseDecorators ( ) , parseModifiers ( ) ) ) ;
5492
5488
// `parseListElement` attempted to get the reused node at this position,
5493
5489
// but the ambient context flag was not yet set, so the node appeared
5494
5490
// not reusable in that context.
@@ -5501,8 +5497,8 @@ namespace ts {
5501
5497
}
5502
5498
5503
5499
const node = < Statement > createNodeWithJSDoc ( SyntaxKind . Unknown ) ;
5504
- node . decorators = consumeNode ( decorators ) ;
5505
- node . modifiers = consumeNode ( modifiers ) ;
5500
+ node . decorators = parseDecorators ( ) ;
5501
+ node . modifiers = parseModifiers ( ) ;
5506
5502
if ( isAmbient ) {
5507
5503
for ( const m of node . modifiers ! ) {
5508
5504
m . flags |= NodeFlags . Ambient ;
You can’t perform that action at this time.
0 commit comments