File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2214,14 +2214,14 @@ module ts {
22142214 return getQuotedEscapedLiteralText ( '"' , node . text , '"' ) ;
22152215 }
22162216
2217- // If we don't need to downlevel, and we can reach the original source text using
2217+ // If we don't need to downlevel and we can reach the original source text using
22182218 // the node's parent reference, then simply get the text as it was originally written.
22192219 if ( node . parent ) {
22202220 return getSourceTextOfNodeFromSourceFile ( currentSourceFile , node ) ;
22212221 }
22222222
2223- // If we can't reach the original source text, use the canonical form of it's a number,
2224- // or a escaped quoted form of the original text if it's string-like.
2223+ // If we can't reach the original source text, use the canonical form if it's a number,
2224+ // or an escaped quoted form of the original text if it's string-like.
22252225 switch ( node . kind ) {
22262226 case SyntaxKind . StringLiteral :
22272227 return getQuotedEscapedLiteralText ( '"' , node . text , '"' ) ;
You can’t perform that action at this time.
0 commit comments