C# Class Antlr4.Runtime.Tree.Pattern.TextChunk

Represents a span of raw text (concrete syntax) between tags in a tree pattern string.
Represents a span of raw text (concrete syntax) between tags in a tree pattern string.
Inheritance: Chunk
Datei anzeigen Open project: antlr/antlr4 Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
TextChunk ( string text ) : System

Constructs a new instance of TextChunk with the specified text.

ToString ( ) : string

The implementation for TextChunk returns the result of Text() in single quotes.

Method Details

TextChunk() public method

Constructs a new instance of TextChunk with the specified text.
/// IllegalArgumentException /// if /// /// is /// /// . ///
public TextChunk ( string text ) : System
text string The text of this chunk.
return System

ToString() public method

The implementation for TextChunk returns the result of Text() in single quotes.

public ToString ( ) : string
return string