public static string GetPositionString(this IParseTree context) { var sourceFile = context.GetNearestAncestorOfType <TypescriptParser.SourceFileContext>(); var token = context.GetTokens().First(); return($"{sourceFile.FilePath} ({token.Line}, {token.Column})"); }