IndentAwareLexer
Class in Yarn.Compiler
Inherits from Antlr4.Runtime.Lexer
Summary
A Lexer subclass that detects newlines and generates indent and
dedent tokens accordingly.
public abstract class IndentAwareLexer : Lexer
Constructors
Methods
| Name | Description |
|---|
| IsInWhenClause() | Returns a value indicating whether the lexer is currently lexing an expression that’s part of a ‘when’ clause. |
| NextToken() | |
| SetInWhenClause(bool) | Sets a value indicating whether the lexer is currently lexing an expression that’s part of a ‘when’ clause. |
Properties
| Name | Description |
|---|
| Warnings | Gets the collection of warnings determined during lexing. |
Structs