Table of Contents

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

InBlockComment bool

True when the line begins inside an unterminated block comment.

InTemplateLiteral bool

True 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

bool

InTemplateLiteral

True when the line begins inside an unterminated template literal.

public bool InTemplateLiteral { get; init; }

Property Value

bool