(sourceFile *ast.SourceFile, pos int)
| 2519 | } |
| 2520 | |
| 2521 | func GetRangeOfTokenAtPosition(sourceFile *ast.SourceFile, pos int) core.TextRange { |
| 2522 | s := GetScannerForSourceFile(sourceFile, pos) |
| 2523 | return core.NewTextRange(s.tokenStart, s.pos) |
| 2524 | } |
| 2525 | |
| 2526 | func GetTokenPosOfNode(node *ast.Node, sourceFile *ast.SourceFile, includeJSDoc bool) int { |
| 2527 | // With nodes that have no width (i.e. 'Missing' nodes), we actually *don't* |
no test coverage detected