@@ -518,7 +518,6 @@ namespace ts {
518518 hasExplicitReturn = false ;
519519 bindChildren ( node ) ;
520520 // Reset all reachability check related flags on node (for incremental scenarios)
521- // Reset all emit helper flags on node (for incremental scenarios)
522521 node . flags &= ~ NodeFlags . ReachabilityAndEmitFlags ;
523522 if ( ! ( currentFlow . flags & FlowFlags . Unreachable ) && containerFlags & ContainerFlags . IsFunctionLike && nodeIsPresent ( ( < FunctionLikeDeclaration > node ) . body ) ) {
524523 node . flags |= NodeFlags . HasImplicitReturn ;
@@ -1950,9 +1949,6 @@ namespace ts {
19501949 return bindParameter ( < ParameterDeclaration > node ) ;
19511950 case SyntaxKind . VariableDeclaration :
19521951 case SyntaxKind . BindingElement :
1953- if ( ( node as BindingElement ) . dotDotDotToken && node . parent . kind === SyntaxKind . ObjectBindingPattern ) {
1954- emitFlags |= NodeFlags . HasRestAttribute ;
1955- }
19561952 return bindVariableDeclarationOrBindingElement ( < VariableDeclaration | BindingElement > node ) ;
19571953 case SyntaxKind . PropertyDeclaration :
19581954 case SyntaxKind . PropertySignature :
@@ -1980,7 +1976,6 @@ namespace ts {
19801976 }
19811977 root = root . parent ;
19821978 }
1983- emitFlags |= hasRest ? NodeFlags . HasRestAttribute : NodeFlags . HasSpreadAttribute ;
19841979 return ;
19851980
19861981 case SyntaxKind . CallSignature :
@@ -2236,15 +2231,6 @@ namespace ts {
22362231 }
22372232
22382233 function bindClassLikeDeclaration ( node : ClassLikeDeclaration ) {
2239- if ( ! isDeclarationFile ( file ) && ! isInAmbientContext ( node ) ) {
2240- if ( getClassExtendsHeritageClauseElement ( node ) !== undefined ) {
2241- emitFlags |= NodeFlags . HasClassExtends ;
2242- }
2243- if ( nodeIsDecorated ( node ) ) {
2244- emitFlags |= NodeFlags . HasDecorators ;
2245- }
2246- }
2247-
22482234 if ( node . kind === SyntaxKind . ClassDeclaration ) {
22492235 bindBlockScopedDeclaration ( node , SymbolFlags . Class , SymbolFlags . ClassExcludes ) ;
22502236 }
@@ -2314,12 +2300,6 @@ namespace ts {
23142300 }
23152301
23162302 function bindParameter ( node : ParameterDeclaration ) {
2317- if ( ! isDeclarationFile ( file ) &&
2318- ! isInAmbientContext ( node ) &&
2319- nodeIsDecorated ( node ) ) {
2320- emitFlags |= ( NodeFlags . HasDecorators | NodeFlags . HasParamDecorators ) ;
2321- }
2322-
23232303 if ( inStrictMode ) {
23242304 // It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a
23252305 // strict mode FunctionLikeDeclaration or FunctionExpression(13.1)
@@ -2377,9 +2357,6 @@ namespace ts {
23772357 if ( isAsyncFunctionLike ( node ) ) {
23782358 emitFlags |= NodeFlags . HasAsyncFunctions ;
23792359 }
2380- if ( nodeIsDecorated ( node ) ) {
2381- emitFlags |= NodeFlags . HasDecorators ;
2382- }
23832360 }
23842361
23852362 if ( currentFlow && isObjectLiteralOrClassExpressionMethod ( node ) ) {
0 commit comments