Class EndIfDirectiveTriviaSyntax
Inheritance
EndIfDirectiveTriviaSyntax
Assembly: Microsoft.CodeAnalysis.CSharp.dll
Syntax
public sealed class EndIfDirectiveTriviaSyntax : DirectiveTriviaSyntax, IFormattable, IStructuredTriviaSyntax
Properties
EndIfKeyword
Declaration
public SyntaxToken EndIfKeyword { get; }
Property Value
EndOfDirectiveToken
Declaration
public override SyntaxToken EndOfDirectiveToken { get; }
Property Value
Overrides
HashToken
Declaration
public override SyntaxToken HashToken { get; }
Property Value
Overrides
IsActive
Declaration
public override bool IsActive { get; }
Property Value
Overrides
Methods
Accept(CSharpSyntaxVisitor)
Declaration
public override void Accept(CSharpSyntaxVisitor visitor)
Parameters
Overrides
Accept<TResult>(CSharpSyntaxVisitor<TResult>)
Declaration
public override TResult? Accept<TResult>(CSharpSyntaxVisitor<TResult> visitor)
Parameters
Returns
Type Parameters
Overrides
Update(SyntaxToken, SyntaxToken, SyntaxToken, bool)
Declaration
public EndIfDirectiveTriviaSyntax Update(SyntaxToken hashToken, SyntaxToken endIfKeyword, SyntaxToken endOfDirectiveToken, bool isActive)
Parameters
Returns
WithEndIfKeyword(SyntaxToken)
Declaration
public EndIfDirectiveTriviaSyntax WithEndIfKeyword(SyntaxToken endIfKeyword)
Parameters
Returns
WithEndOfDirectiveToken(SyntaxToken)
Declaration
public EndIfDirectiveTriviaSyntax WithEndOfDirectiveToken(SyntaxToken endOfDirectiveToken)
Parameters
Returns
WithHashToken(SyntaxToken)
Declaration
public EndIfDirectiveTriviaSyntax WithHashToken(SyntaxToken hashToken)
Parameters
Returns
WithIsActive(bool)
Declaration
public EndIfDirectiveTriviaSyntax WithIsActive(bool isActive)
Parameters
| Type |
Name |
Description |
| bool |
isActive |
|
Returns
Implements
Extension Methods