ParserRuleContextExtension.GetTextWithWhitespace(ParserRuleContext)

Method in ParserRuleContextExtension

Summary

Returns the original text of this Antlr4.Runtime.ParserRuleContext , including all whitespace, comments, and other information that the parser would otherwise not include.

public static string GetTextWithWhitespace(this ParserRuleContext context)

Parameters

NameDescription
Antlr4.Runtime.ParserRuleContext context

Returns

The original text of this expression.