@@ -585,7 +585,7 @@ namespace ts {
585585 // 'disallow-in' set to 'false'. Otherwise, if we had 'allowsIn' set to 'true', then almost
586586 // all nodes would need extra state on them to store this info.
587587 //
588- // Note: 'allowIn' and 'allowYield' track 1:1 with the [in] and [yield] concepts in the ES6
588+ // Note: 'allowIn' and 'allowYield' track 1:1 with the [in] and [yield] concepts in the ES6
589589 // grammar specification.
590590 //
591591 // An important thing about these context concepts. By default they are effectively inherited
@@ -701,7 +701,7 @@ namespace ts {
701701
702702 function getLanguageVariant ( scriptKind : ScriptKind ) {
703703 // .tsx and .jsx files are treated as jsx language variant.
704- return scriptKind === ScriptKind . TSX || scriptKind === ScriptKind . JSX || scriptKind === ScriptKind . JS || scriptKind === ScriptKind . JSON ? LanguageVariant . JSX : LanguageVariant . Standard ;
704+ return scriptKind === ScriptKind . TSX || scriptKind === ScriptKind . JSX || scriptKind === ScriptKind . JS || scriptKind === ScriptKind . JSON ? LanguageVariant . JSX : LanguageVariant . Standard ;
705705 }
706706
707707 function initializeState ( _sourceText : string , languageVersion : ScriptTarget , _syntaxCursor : IncrementalParser . SyntaxCursor , scriptKind : ScriptKind ) {
@@ -1453,7 +1453,7 @@ namespace ts {
14531453 function isValidHeritageClauseObjectLiteral ( ) {
14541454 Debug . assert ( token ( ) === SyntaxKind . OpenBraceToken ) ;
14551455 if ( nextToken ( ) === SyntaxKind . CloseBraceToken ) {
1456- // if we see "extends {}" then only treat the {} as what we're extending (and not
1456+ // if we see "extends {}" then only treat the {} as what we're extending (and not
14571457 // the class body) if we have:
14581458 //
14591459 // extends {} {
@@ -1549,7 +1549,7 @@ namespace ts {
15491549
15501550 function isVariableDeclaratorListTerminator ( ) : boolean {
15511551 // If we can consume a semicolon (either explicitly, or with ASI), then consider us done
1552- // with parsing the list of variable declarators.
1552+ // with parsing the list of variable declarators.
15531553 if ( canParseSemicolon ( ) ) {
15541554 return true ;
15551555 }
@@ -2269,7 +2269,7 @@ namespace ts {
22692269 //
22702270 // <T extends "">
22712271 //
2272- // We do *not* want to consume the > as we're consuming the expression for "".
2272+ // We do *not* want to consume the `>` as we're consuming the expression for "".
22732273 node . expression = parseUnaryExpressionOrHigher ( ) ;
22742274 }
22752275 }
@@ -3089,7 +3089,7 @@ namespace ts {
30893089 // And production (2) is parsed in "tryParseParenthesizedArrowFunctionExpression".
30903090 //
30913091 // If we do successfully parse arrow-function, we must *not* recurse for productions 1, 2 or 3. An ArrowFunction is
3092- // not a LeftHandSideExpression, nor does it start a ConditionalExpression. So we are done
3092+ // not a LeftHandSideExpression, nor does it start a ConditionalExpression. So we are done
30933093 // with AssignmentExpression if we see one.
30943094 const arrowExpression = tryParseParenthesizedArrowFunctionExpression ( ) || tryParseAsyncSimpleArrowFunctionExpression ( ) ;
30953095 if ( arrowExpression ) {
@@ -3119,7 +3119,7 @@ namespace ts {
31193119 // we're in '2' or '3'. Consume the assignment and return.
31203120 //
31213121 // Note: we call reScanGreaterToken so that we get an appropriately merged token
3122- // for cases like > > = becoming >>=
3122+ // for cases like ` > > =` becoming ` >>=`
31233123 if ( isLeftHandSideExpression ( expr ) && isAssignmentOperator ( reScanGreaterToken ( ) ) ) {
31243124 return makeBinaryExpression ( expr , < BinaryOperatorToken > parseTokenNode ( ) , parseAssignmentExpressionOrHigher ( ) ) ;
31253125 }
@@ -3275,7 +3275,7 @@ namespace ts {
32753275
32763276 if ( first === SyntaxKind . OpenParenToken ) {
32773277 if ( second === SyntaxKind . CloseParenToken ) {
3278- // Simple cases: "() =>", "(): ", and "() {".
3278+ // Simple cases: "() =>", "(): ", and "() {".
32793279 // This is an arrow function with no parameters.
32803280 // The last one is not actually an arrow function,
32813281 // but this is probably what the user intended.
@@ -3895,7 +3895,8 @@ namespace ts {
38953895 // We don't want to eagerly consume all import keyword as import call expression so we look a head to find "("
38963896 // For example:
38973897 // var foo3 = require("subfolder
3898- // import * as foo1 from "module-from-node -> we want this import to be a statement rather than import call expression
3898+ // import * as foo1 from "module-from-node
3899+ // We want this import to be a statement rather than import call expression
38993900 sourceFile . flags |= NodeFlags . PossiblyContainsDynamicImport ;
39003901 expression = parseTokenNode < PrimaryExpression > ( ) ;
39013902 }
@@ -3945,7 +3946,7 @@ namespace ts {
39453946 // treated as the invocation of "new Foo". We disambiguate that in code (to match
39463947 // the original grammar) by making sure that if we see an ObjectCreationExpression
39473948 // we always consume arguments if they are there. So we treat "new Foo()" as an
3948- // object creation only, and not at all as an invocation) Another way to think
3949+ // object creation only, and not at all as an invocation. Another way to think
39493950 // about this is that for every "new" that we see, we will consume an argument list if
39503951 // it is there as part of the *associated* object creation node. Any additional
39513952 // argument lists we see, will become invocation expressions.
@@ -4361,7 +4362,7 @@ namespace ts {
43614362
43624363 const typeArguments = parseDelimitedList ( ParsingContext . TypeArguments , parseType ) ;
43634364 if ( ! parseExpected ( SyntaxKind . GreaterThanToken ) ) {
4364- // If it doesn't have the closing > then it's definitely not an type argument list.
4365+ // If it doesn't have the closing `>` then it's definitely not an type argument list.
43654366 return undefined ;
43664367 }
43674368
@@ -5394,8 +5395,8 @@ namespace ts {
53945395 // off. The grammar would look something like this:
53955396 //
53965397 // MemberVariableDeclaration[Yield]:
5397- // AccessibilityModifier_opt PropertyName TypeAnnotation_opt Initializer_opt[In];
5398- // AccessibilityModifier_opt static_opt PropertyName TypeAnnotation_opt Initializer_opt[In, ?Yield];
5398+ // AccessibilityModifier_opt PropertyName TypeAnnotation_opt Initializer_opt[In];
5399+ // AccessibilityModifier_opt static_opt PropertyName TypeAnnotation_opt Initializer_opt[In, ?Yield];
53995400 //
54005401 // The checker may still error in the static case to explicitly disallow the yield expression.
54015402 node . initializer = hasModifier ( node , ModifierFlags . Static )
@@ -7077,7 +7078,7 @@ namespace ts {
70777078
70787079 // If the 'pos' is before the start of the change, then we don't need to touch it.
70797080 // If it isn't, then the 'pos' must be inside the change. How we update it will
7080- // depend if delta is positive or negative. If delta is positive then we have
7081+ // depend if delta is positive or negative. If delta is positive then we have
70817082 // something like:
70827083 //
70837084 // -------------------AAA-----------------
@@ -7102,7 +7103,7 @@ namespace ts {
71027103
71037104 // If the 'end' is after the change range, then we always adjust it by the delta
71047105 // amount. However, if the end is in the change range, then how we adjust it
7105- // will depend on if delta is positive or negative. If delta is positive then we
7106+ // will depend on if delta is positive or negative. If delta is positive then we
71067107 // have something like:
71077108 //
71087109 // -------------------AAA-----------------
0 commit comments