(sourceFile *ast.SourceFile, pos int)
| 2504 | } |
| 2505 | |
| 2506 | func GetScannerForSourceFile(sourceFile *ast.SourceFile, pos int) *Scanner { |
| 2507 | s := NewScanner() |
| 2508 | s.text = sourceFile.Text() |
| 2509 | s.pos = pos |
| 2510 | s.end = len(s.text) |
| 2511 | s.languageVariant = sourceFile.LanguageVariant |
| 2512 | s.Scan() |
| 2513 | return s |
| 2514 | } |
| 2515 | |
| 2516 | func ScanTokenAtPosition(sourceFile *ast.SourceFile, pos int) ast.Kind { |
| 2517 | s := GetScannerForSourceFile(sourceFile, pos) |
no test coverage detected