API Reference
Class
HtmlCssSyntaxDocument
Base type for a source-preserving CSS syntax result.
Inheritance
- Object
- HtmlCssSyntaxDocument
Methods
public HtmlCssSourcePosition GetPosition(Int32 offset) #Returns:
HtmlCssSourcePositionMaps an exact UTF-16 offset to a one-based line and column.
Parameters
- offset System.Int32
public override String ToString() #Returns:
StringReturns a string that represents the current object.
Returns
A string that represents the current object.
Inherited Methods
Properties
public String Source { get; } #Exact original CSS input.
public IReadOnlyList<HtmlCssToken> Tokens { get; } #All lexical tokens, including trivia and the final end-of-input token.
public IReadOnlyList<HtmlCssSyntaxNode> Contents { get; } #Rules, declarations, and invalid recovered source in authored order.
public IReadOnlyList<HtmlCssSyntaxDiagnostic> Diagnostics { get; } #Syntax recovery diagnostics. Unknown names and values do not produce diagnostics.