Class NilableTypeSyntax
This node represents a nilable type.
Implements
IFormattable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Loretta.CodeAnalysis.Lua.Syntax
Assembly: Loretta.CodeAnalysis.Lua.dll
Syntax
public sealed class NilableTypeSyntax : TypeSyntax
Remarks
This node is associated with the following syntax kinds:
Properties
| Improve this Doc View SourceQuestionToken
Gets the ?
token.
Declaration
public SyntaxToken QuestionToken { get; }
Property Value
Type | Description |
---|---|
Syntax |
Type
Gets the base type that's being made nilable.
Declaration
public TypeSyntax Type { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
| Improve this Doc View SourceAccept(LuaSyntaxVisitor)
Declaration
public override void Accept(LuaSyntaxVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
Lua |
visitor |
Overrides
| Improve this Doc View SourceAccept<TResult>(LuaSyntaxVisitor<TResult>)
Declaration
public override TResult Accept<TResult>(LuaSyntaxVisitor<TResult> visitor)
Parameters
Type | Name | Description |
---|---|---|
Lua |
visitor |
Returns
Type | Description |
---|---|
TResult |
Type Parameters
Name | Description |
---|---|
TResult |
Overrides
Loretta.CodeAnalysis.Lua.LuaSyntaxNode.Accept<TResult>(Loretta.CodeAnalysis.Lua.LuaSyntaxVisitor<TResult>)
|
Improve this Doc
View Source
Update(TypeSyntax, SyntaxToken)
Declaration
public NilableTypeSyntax Update(TypeSyntax type, SyntaxToken questionToken)
Parameters
Type | Name | Description |
---|---|---|
Type |
type | |
Syntax |
questionToken |
Returns
Type | Description |
---|---|
Nilable |
WithQuestionToken(SyntaxToken)
Declaration
public NilableTypeSyntax WithQuestionToken(SyntaxToken questionToken)
Parameters
Type | Name | Description |
---|---|---|
Syntax |
questionToken |
Returns
Type | Description |
---|---|
Nilable |
WithType(TypeSyntax)
Declaration
public NilableTypeSyntax WithType(TypeSyntax type)
Parameters
Type | Name | Description |
---|---|---|
Type |
type |
Returns
Type | Description |
---|---|
Nilable |
Implements
IFormattable