Class StatementListSyntax
Represents a block of code.
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 StatementListSyntax : LuaSyntaxNode
Remarks
This node is associated with the following syntax kinds:
Properties
| Improve this Doc View SourceStatements
The list of statements contained within this block.
Declaration
public SyntaxList<StatementSyntax> Statements { get; }
Property Value
Type | Description |
---|---|
SyntaxList<StatementSyntax> |
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
AddStatements(StatementSyntax[])
Declaration
public StatementListSyntax AddStatements(params StatementSyntax[] items)
Parameters
Type | Name | Description |
---|---|---|
StatementSyntax[] | items |
Returns
Type | Description |
---|---|
StatementListSyntax |
Update(SyntaxList<StatementSyntax>)
Declaration
public StatementListSyntax Update(SyntaxList<StatementSyntax> statements)
Parameters
Type | Name | Description |
---|---|---|
SyntaxList<StatementSyntax> | statements |
Returns
Type | Description |
---|---|
StatementListSyntax |
WithStatements(SyntaxList<StatementSyntax>)
Declaration
public StatementListSyntax WithStatements(SyntaxList<StatementSyntax> statements)
Parameters
Type | Name | Description |
---|---|---|
SyntaxList<StatementSyntax> | statements |
Returns
Type | Description |
---|---|
StatementListSyntax |
Implements
IFormattable