Class UnaryExpressionSyntax
Represents an unary expression.
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 UnaryExpressionSyntax : ExpressionSyntax
Remarks
This node is associated with the following syntax kinds:
Properties
| Improve this Doc View SourceOperand
The operand expression.
Declaration
public ExpressionSyntax Operand { get; }
Property Value
Type | Description |
---|---|
ExpressionSyntax |
OperatorToken
The operator token.
Declaration
public SyntaxToken OperatorToken { get; }
Property Value
Type | Description |
---|---|
SyntaxToken |
Methods
| Improve this Doc View SourceAccept(LuaSyntaxVisitor)
Declaration
public override void Accept(LuaSyntaxVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
LuaSyntaxVisitor | visitor |
Overrides
| Improve this Doc View SourceAccept<TResult>(LuaSyntaxVisitor<TResult>)
Declaration
public override TResult Accept<TResult>(LuaSyntaxVisitor<TResult> visitor)
Parameters
Type | Name | Description |
---|---|---|
LuaSyntaxVisitor<TResult> | 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(SyntaxToken, ExpressionSyntax)
Declaration
public UnaryExpressionSyntax Update(SyntaxToken operatorToken, ExpressionSyntax operand)
Parameters
Type | Name | Description |
---|---|---|
SyntaxToken | operatorToken | |
ExpressionSyntax | operand |
Returns
Type | Description |
---|---|
UnaryExpressionSyntax |
WithOperand(ExpressionSyntax)
Declaration
public UnaryExpressionSyntax WithOperand(ExpressionSyntax operand)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSyntax | operand |
Returns
Type | Description |
---|---|
UnaryExpressionSyntax |
WithOperatorToken(SyntaxToken)
Declaration
public UnaryExpressionSyntax WithOperatorToken(SyntaxToken operatorToken)
Parameters
Type | Name | Description |
---|---|---|
SyntaxToken | operatorToken |
Returns
Type | Description |
---|---|
UnaryExpressionSyntax |
Implements
IFormattable