コード例 #1
0
 internal void SyntaxError(
     TokenzierContext context,
     CharacterLocationExtended location,
     string helpText)
 {
     context.Errors.Add(new InvalidPathSyntaxError(location, SourceExpression, helpText));
 }
コード例 #2
0
 internal IndexedParseException(CharacterLocationExtended location, string message)
     : base(FormatMessage(message, location))
 {
     Location = location;
 }
コード例 #3
0
 internal static string FormatMessage(string message, CharacterLocationExtended location)
 {
     return($"{location.Line}:{location.Character} {message}" +
            Environment.NewLine +
            location.Render());
 }