Class ExpressionStatementSyntax
An expression as a statement.
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 ExpressionStatementSyntax : StatementSyntax
Remarks
This node is associated with the following syntax kinds:
Properties
| Improve this Doc View SourceExpression
The function call expression.
Declaration
public ExpressionSyntax Expression { get; }
Property Value
Type | Description |
---|---|
ExpressionSyntax |
SemicolonToken
The semicolon at the end of the statement (if any).
Declaration
public override SyntaxToken SemicolonToken { get; }
Property Value
Type | Description |
---|---|
SyntaxToken |
Overrides
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(ExpressionSyntax, SyntaxToken)
Declaration
public ExpressionStatementSyntax Update(ExpressionSyntax expression, SyntaxToken semicolonToken)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSyntax | expression | |
SyntaxToken | semicolonToken |
Returns
Type | Description |
---|---|
ExpressionStatementSyntax |
WithExpression(ExpressionSyntax)
Declaration
public ExpressionStatementSyntax WithExpression(ExpressionSyntax expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSyntax | expression |
Returns
Type | Description |
---|---|
ExpressionStatementSyntax |
WithSemicolonToken(SyntaxToken)
Declaration
public ExpressionStatementSyntax WithSemicolonToken(SyntaxToken semicolonToken)
Parameters
Type | Name | Description |
---|---|---|
SyntaxToken | semicolonToken |
Returns
Type | Description |
---|---|
ExpressionStatementSyntax |
Implements
IFormattable