nl_tokens: / * Character is the actual index of the character since the beginning of the line . Column - position of the character after expanding tabs to spaces 0 \ t2$ value of character for $ is 3 value of column for $ is 6 ( assuming that tab size is 4 )
pl_tokens: function findFirstNonWhitespaceCharacterAndColumn ( startPos , endPos , sourceFile , options ) { var character = 0 ; var column = 0 ; for ( var pos = startPos ; pos < endPos ; ++ pos ) { var ch = sourceFile . text . charCodeAt ( pos ) ; if ( ! ts . isWhiteSpace ( ch ) ) { break ; } if ( ch === 9 /* tab */ ) { column += options . TabSize + ( column % <mask> . TabSize ) ; } else { column ++ ; } character ++ ; } return { column : column , character : character } ; }