CssAttributeSelectorSyntax Class

Represents an attribute selector, such as [href^="https:" i].

public sealed class CssAttributeSelectorSyntax : CssSimpleSelectorSyntax
Inheritance
CssSimpleSelectorSyntax CssAttributeSelectorSyntax

Properties

NameDescription
CloseBracketToken
EqualsToken
IsCaseInsensitiveGets whether the value is compared without regard to ASCII case (i), with regard to it (s), or as the document language says (null).
ModifierToken
NameGets the attribute name, with its escapes resolved.
NameToken
NamespacePrefix
OpenBracketToken
OperatorGets how the value of the attribute is compared.
OperatorPrefixToken
ValueGets the value the attribute is compared with, unquoted and with its escapes resolved, or null when there is none.
ValueToken

CloseBracketToken

Syntax.g.cs
public SyntaxToken CloseBracketToken { get; }

Property value

SyntaxToken

No documentation is available.

EqualsToken

Syntax.g.cs
public SyntaxToken EqualsToken { get; }

Property value

SyntaxToken

No documentation is available.

Gets whether the value is compared without regard to ASCII case (i), with regard to it (s), or as the document language says (null).

public bool? IsCaseInsensitive { get; }

Property value

bool?

ModifierToken

Syntax.g.cs
public SyntaxToken ModifierToken { get; }

Property value

SyntaxToken

No documentation is available.

Gets the attribute name, with its escapes resolved.

public string Name { get; }

Property value

string

NameToken

Syntax.g.cs
public SyntaxToken NameToken { get; }

Property value

SyntaxToken

No documentation is available.

NamespacePrefix

Syntax.g.cs
public CssNamespacePrefixSyntax? NamespacePrefix { get; }

No documentation is available.

OpenBracketToken

Syntax.g.cs
public SyntaxToken OpenBracketToken { get; }

Property value

SyntaxToken

No documentation is available.

Gets how the value of the attribute is compared.

public CssAttributeOperator Operator { get; }

Property value

CssAttributeOperator

OperatorPrefixToken

Syntax.g.cs
public SyntaxToken OperatorPrefixToken { get; }

Property value

SyntaxToken

No documentation is available.

Gets the value the attribute is compared with, unquoted and with its escapes resolved, or null when there is none.

public string? Value { get; }

Property value

string?

ValueToken

Syntax.g.cs
public SyntaxToken ValueToken { get; }

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(CssSyntaxVisitor)
Accept<TResult>(CssSyntaxVisitor<TResult>)
Update(SyntaxToken, CssNamespacePrefixSyntax?, SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithCloseBracketToken(SyntaxToken)Returns this node with closeBracketToken in place of its CssAttributeSelectorSyntax.CloseBracketToken.
WithEqualsToken(SyntaxToken)Returns this node with equalsToken in place of its CssAttributeSelectorSyntax.EqualsToken.
WithModifierToken(SyntaxToken)Returns this node with modifierToken in place of its CssAttributeSelectorSyntax.ModifierToken.
WithNameToken(SyntaxToken)Returns this node with nameToken in place of its CssAttributeSelectorSyntax.NameToken.
WithNamespacePrefix(CssNamespacePrefixSyntax?)Returns this node with namespacePrefix in place of its CssAttributeSelectorSyntax.NamespacePrefix.
WithOpenBracketToken(SyntaxToken)Returns this node with openBracketToken in place of its CssAttributeSelectorSyntax.OpenBracketToken.
WithOperatorPrefixToken(SyntaxToken)Returns this node with operatorPrefixToken in place of its CssAttributeSelectorSyntax.OperatorPrefixToken.
WithValueToken(SyntaxToken)Returns this node with valueToken in place of its CssAttributeSelectorSyntax.ValueToken.

Accept overloads

Accept(CssSyntaxVisitor)

Syntax.g.cs
public override void Accept(CssSyntaxVisitor visitor)
Parameters
visitor CssSyntaxVisitor

No documentation is available.

Accept<TResult>(CssSyntaxVisitor<TResult>)

Syntax.g.cs
public override TResult? Accept<TResult>(CssSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor CssSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(SyntaxToken, CssNamespacePrefixSyntax?, SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken)

Syntax.g.cs

Returns this node with the given parts, or itself when nothing changed.

public CssAttributeSelectorSyntax Update(SyntaxToken openBracketToken, CssNamespacePrefixSyntax? namespacePrefix, SyntaxToken nameToken, SyntaxToken operatorPrefixToken, SyntaxToken equalsToken, SyntaxToken valueToken, SyntaxToken modifierToken, SyntaxToken closeBracketToken)

Parameters

openBracketToken SyntaxToken
namespacePrefix CssNamespacePrefixSyntax?
nameToken SyntaxToken
operatorPrefixToken SyntaxToken
equalsToken SyntaxToken
valueToken SyntaxToken
modifierToken SyntaxToken
closeBracketToken SyntaxToken

Returns

CssAttributeSelectorSyntax

WithCloseBracketToken(SyntaxToken)

Syntax.g.cs

Returns this node with closeBracketToken in place of its CssAttributeSelectorSyntax.CloseBracketToken.

public CssAttributeSelectorSyntax WithCloseBracketToken(SyntaxToken closeBracketToken)

Parameters

closeBracketToken SyntaxToken

Returns

CssAttributeSelectorSyntax

WithEqualsToken(SyntaxToken)

Syntax.g.cs

Returns this node with equalsToken in place of its CssAttributeSelectorSyntax.EqualsToken.

public CssAttributeSelectorSyntax WithEqualsToken(SyntaxToken equalsToken)

Parameters

equalsToken SyntaxToken

Returns

CssAttributeSelectorSyntax

WithModifierToken(SyntaxToken)

Syntax.g.cs

Returns this node with modifierToken in place of its CssAttributeSelectorSyntax.ModifierToken.

public CssAttributeSelectorSyntax WithModifierToken(SyntaxToken modifierToken)

Parameters

modifierToken SyntaxToken

Returns

CssAttributeSelectorSyntax

WithNameToken(SyntaxToken)

Syntax.g.cs

Returns this node with nameToken in place of its CssAttributeSelectorSyntax.NameToken.

public CssAttributeSelectorSyntax WithNameToken(SyntaxToken nameToken)

Parameters

nameToken SyntaxToken

Returns

CssAttributeSelectorSyntax

WithNamespacePrefix(CssNamespacePrefixSyntax?)

Syntax.g.cs

Returns this node with namespacePrefix in place of its CssAttributeSelectorSyntax.NamespacePrefix.

public CssAttributeSelectorSyntax WithNamespacePrefix(CssNamespacePrefixSyntax? namespacePrefix)

WithOpenBracketToken(SyntaxToken)

Syntax.g.cs

Returns this node with openBracketToken in place of its CssAttributeSelectorSyntax.OpenBracketToken.

public CssAttributeSelectorSyntax WithOpenBracketToken(SyntaxToken openBracketToken)

Parameters

openBracketToken SyntaxToken

Returns

CssAttributeSelectorSyntax

WithOperatorPrefixToken(SyntaxToken)

Syntax.g.cs

Returns this node with operatorPrefixToken in place of its CssAttributeSelectorSyntax.OperatorPrefixToken.

public CssAttributeSelectorSyntax WithOperatorPrefixToken(SyntaxToken operatorPrefixToken)

Parameters

operatorPrefixToken SyntaxToken

Returns

CssAttributeSelectorSyntax

WithValueToken(SyntaxToken)

Syntax.g.cs

Returns this node with valueToken in place of its CssAttributeSelectorSyntax.ValueToken.

public CssAttributeSelectorSyntax WithValueToken(SyntaxToken valueToken)

Parameters

valueToken SyntaxToken

Returns

CssAttributeSelectorSyntax