Class JsLineState
- Namespace
- SharpConsoleUI.Highlighting
- Assembly
- SharpConsoleUI.dll
Per-line parser state for the JavaScript/TypeScript highlighter.
public record JsLineState : SyntaxLineState, IEquatable<SyntaxLineState>, IEquatable<JsLineState>
- Inheritance
-
JsLineState
- Implements
- Inherited Members
- Extension Methods
Constructors
JsLineState(bool, bool)
Per-line parser state for the JavaScript/TypeScript highlighter.
public JsLineState(bool InBlockComment = false, bool InTemplateLiteral = false)
Parameters
InBlockCommentboolTrue when the line begins inside an unterminated block comment.
InTemplateLiteralboolTrue when the line begins inside an unterminated template literal.
Properties
InBlockComment
True when the line begins inside an unterminated block comment.
public bool InBlockComment { get; init; }
Property Value
InTemplateLiteral
True when the line begins inside an unterminated template literal.
public bool InTemplateLiteral { get; init; }