Search Results for

    Show / Hide Table of Contents

    Class NumericForStatementSyntax

    Represents a numeric for statement.

    Inheritance
    System.Object
    SyntaxNode
    LuaSyntaxNode
    StatementSyntax
    NumericForStatementSyntax
    Implements
    IFormattable
    Inherited Members
    LuaSyntaxNode.Kind()
    LuaSyntaxNode.Language
    LuaSyntaxNode.GetLeadingTrivia()
    LuaSyntaxNode.GetTrailingTrivia()
    LuaSyntaxNode.DeserializeFrom(Stream, CancellationToken)
    LuaSyntaxNode.GetLocation()
    LuaSyntaxNode.GetDiagnostics()
    LuaSyntaxNode.GetFirstToken(Boolean, Boolean, Boolean, Boolean)
    LuaSyntaxNode.GetLastToken(Boolean, Boolean, Boolean, Boolean)
    LuaSyntaxNode.FindToken(Int32, Boolean)
    LuaSyntaxNode.FindTrivia(Int32, Func<SyntaxTrivia, Boolean>)
    LuaSyntaxNode.FindTrivia(Int32, Boolean)
    SyntaxNode.RawKind
    SyntaxNode.SyntaxTree
    SyntaxNode.FullSpan
    SyntaxNode.Span
    SyntaxNode.SpanStart
    SyntaxNode.ToString()
    SyntaxNode.ToFullString()
    SyntaxNode.WriteTo(TextWriter)
    SyntaxNode.GetText(Encoding, SourceHashAlgorithm)
    SyntaxNode.IsEquivalentTo(SyntaxNode)
    SyntaxNode.IsIncrementallyIdenticalTo(SyntaxNode)
    SyntaxNode.IsMissing
    SyntaxNode.IsPartOfStructuredTrivia()
    SyntaxNode.IsStructuredTrivia
    SyntaxNode.HasStructuredTrivia
    SyntaxNode.ContainsSkippedText
    SyntaxNode.ContainsDirectives
    SyntaxNode.ContainsDiagnostics
    SyntaxNode.Contains(SyntaxNode)
    SyntaxNode.HasLeadingTrivia
    SyntaxNode.HasTrailingTrivia
    SyntaxNode.GetReference()
    SyntaxNode.Parent
    SyntaxNode.ParentTrivia
    SyntaxNode.ChildNodesAndTokens()
    SyntaxNode.ChildThatContainsPosition(Int32)
    SyntaxNode.ChildNodes()
    SyntaxNode.Ancestors(Boolean)
    SyntaxNode.AncestorsAndSelf(Boolean)
    SyntaxNode.FirstAncestorOrSelf<TNode>(Nullable<Func<TNode, Boolean>>, Boolean)
    SyntaxNode.FirstAncestorOrSelf<TNode, TArg>(Func<TNode, TArg, Boolean>, TArg, Boolean)
    SyntaxNode.DescendantNodes(Nullable<Func<SyntaxNode, Boolean>>, Boolean)
    SyntaxNode.DescendantNodes(TextSpan, Nullable<Func<SyntaxNode, Boolean>>, Boolean)
    SyntaxNode.DescendantNodesAndSelf(Nullable<Func<SyntaxNode, Boolean>>, Boolean)
    SyntaxNode.DescendantNodesAndSelf(TextSpan, Nullable<Func<SyntaxNode, Boolean>>, Boolean)
    SyntaxNode.DescendantNodesAndTokens(Nullable<Func<SyntaxNode, Boolean>>, Boolean)
    SyntaxNode.DescendantNodesAndTokens(TextSpan, Nullable<Func<SyntaxNode, Boolean>>, Boolean)
    SyntaxNode.DescendantNodesAndTokensAndSelf(Nullable<Func<SyntaxNode, Boolean>>, Boolean)
    SyntaxNode.DescendantNodesAndTokensAndSelf(TextSpan, Nullable<Func<SyntaxNode, Boolean>>, Boolean)
    SyntaxNode.FindNode(TextSpan, Boolean, Boolean)
    SyntaxNode.ChildTokens()
    SyntaxNode.DescendantTokens(Nullable<Func<SyntaxNode, Boolean>>, Boolean)
    SyntaxNode.DescendantTokens(TextSpan, Nullable<Func<SyntaxNode, Boolean>>, Boolean)
    SyntaxNode.FindTrivia(Int32, Nullable<Func<SyntaxTrivia, Boolean>>)
    SyntaxNode.DescendantTrivia(Nullable<Func<SyntaxNode, Boolean>>, Boolean)
    SyntaxNode.DescendantTrivia(TextSpan, Nullable<Func<SyntaxNode, Boolean>>, Boolean)
    SyntaxNode.ContainsAnnotations
    SyntaxNode.HasAnnotations(String)
    SyntaxNode.HasAnnotations(IEnumerable<String>)
    SyntaxNode.HasAnnotation(SyntaxAnnotation)
    SyntaxNode.GetAnnotations(String)
    SyntaxNode.GetAnnotations(IEnumerable<String>)
    SyntaxNode.GetAnnotatedNodesAndTokens(String)
    SyntaxNode.GetAnnotatedNodesAndTokens(String[])
    SyntaxNode.GetAnnotatedNodesAndTokens(SyntaxAnnotation)
    SyntaxNode.GetAnnotatedNodes(SyntaxAnnotation)
    SyntaxNode.GetAnnotatedNodes(String)
    SyntaxNode.GetAnnotatedTokens(SyntaxAnnotation)
    SyntaxNode.GetAnnotatedTokens(String)
    SyntaxNode.GetAnnotatedTrivia(String)
    SyntaxNode.GetAnnotatedTrivia(String[])
    SyntaxNode.GetAnnotatedTrivia(SyntaxAnnotation)
    SyntaxNode.CopyAnnotationsTo<T>(T)
    SyntaxNode.IsEquivalentTo(SyntaxNode, Boolean)
    SyntaxNode.SerializeTo(Stream, CancellationToken)
    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 NumericForStatementSyntax : StatementSyntax
    Remarks

    This node is associated with the following syntax kinds:

    • NumericForStatement

    Properties

    | Improve this Doc View Source

    Body

    The loop's body.

    Declaration
    public StatementListSyntax Body { get; }
    Property Value
    Type Description
    StatementListSyntax
    | Improve this Doc View Source

    DoKeyword

    The 'do' keyword.

    Declaration
    public SyntaxToken DoKeyword { get; }
    Property Value
    Type Description
    SyntaxToken
    | Improve this Doc View Source

    EndKeyword

    The 'end' keyword.

    Declaration
    public SyntaxToken EndKeyword { get; }
    Property Value
    Type Description
    SyntaxToken
    | Improve this Doc View Source

    EqualsToken

    The equals token.

    Declaration
    public SyntaxToken EqualsToken { get; }
    Property Value
    Type Description
    SyntaxToken
    | Improve this Doc View Source

    FinalValue

    The expression defining the final value of the loop variable.

    Declaration
    public ExpressionSyntax FinalValue { get; }
    Property Value
    Type Description
    ExpressionSyntax
    | Improve this Doc View Source

    FinalValueCommaToken

    The comma separating the initial value from the final value.

    Declaration
    public SyntaxToken FinalValueCommaToken { get; }
    Property Value
    Type Description
    SyntaxToken
    | Improve this Doc View Source

    ForKeyword

    The 'for' keyword.

    Declaration
    public SyntaxToken ForKeyword { get; }
    Property Value
    Type Description
    SyntaxToken
    | Improve this Doc View Source

    Identifier

    The loop variable.

    Declaration
    public TypedIdentifierNameSyntax Identifier { get; }
    Property Value
    Type Description
    TypedIdentifierNameSyntax
    | Improve this Doc View Source

    InitialValue

    The expression defining the initial value of the loop variable.

    Declaration
    public ExpressionSyntax InitialValue { get; }
    Property Value
    Type Description
    ExpressionSyntax
    | Improve this Doc View Source

    SemicolonToken

    The semicolon at the end of the statement (if any).

    Declaration
    public override SyntaxToken SemicolonToken { get; }
    Property Value
    Type Description
    SyntaxToken
    Overrides
    StatementSyntax.SemicolonToken
    | Improve this Doc View Source

    StepValue

    The expression defining the step value of the loop variable. It may be None if there is no step.

    Declaration
    public ExpressionSyntax StepValue { get; }
    Property Value
    Type Description
    ExpressionSyntax
    | Improve this Doc View Source

    StepValueCommaToken

    The comma separating the final value from the step value. It may be None if there is no step.

    Declaration
    public SyntaxToken StepValueCommaToken { get; }
    Property Value
    Type Description
    SyntaxToken

    Methods

    | Improve this Doc View Source

    Accept(LuaSyntaxVisitor)

    Declaration
    public override void Accept(LuaSyntaxVisitor visitor)
    Parameters
    Type Name Description
    LuaSyntaxVisitor visitor
    Overrides
    LuaSyntaxNode.Accept(LuaSyntaxVisitor)
    | Improve this Doc View Source

    Accept<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

    AddBodyStatements(StatementSyntax[])

    Declaration
    public NumericForStatementSyntax AddBodyStatements(params StatementSyntax[] items)
    Parameters
    Type Name Description
    StatementSyntax[] items
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    Update(SyntaxToken, TypedIdentifierNameSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxToken, StatementListSyntax, SyntaxToken, SyntaxToken)

    Declaration
    public NumericForStatementSyntax Update(SyntaxToken forKeyword, TypedIdentifierNameSyntax identifier, SyntaxToken equalsToken, ExpressionSyntax initialValue, SyntaxToken finalValueCommaToken, ExpressionSyntax finalValue, SyntaxToken stepValueCommaToken, ExpressionSyntax stepValue, SyntaxToken doKeyword, StatementListSyntax body, SyntaxToken endKeyword, SyntaxToken semicolonToken)
    Parameters
    Type Name Description
    SyntaxToken forKeyword
    TypedIdentifierNameSyntax identifier
    SyntaxToken equalsToken
    ExpressionSyntax initialValue
    SyntaxToken finalValueCommaToken
    ExpressionSyntax finalValue
    SyntaxToken stepValueCommaToken
    ExpressionSyntax stepValue
    SyntaxToken doKeyword
    StatementListSyntax body
    SyntaxToken endKeyword
    SyntaxToken semicolonToken
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    WithBody(StatementListSyntax)

    Declaration
    public NumericForStatementSyntax WithBody(StatementListSyntax body)
    Parameters
    Type Name Description
    StatementListSyntax body
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    WithDoKeyword(SyntaxToken)

    Declaration
    public NumericForStatementSyntax WithDoKeyword(SyntaxToken doKeyword)
    Parameters
    Type Name Description
    SyntaxToken doKeyword
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    WithEndKeyword(SyntaxToken)

    Declaration
    public NumericForStatementSyntax WithEndKeyword(SyntaxToken endKeyword)
    Parameters
    Type Name Description
    SyntaxToken endKeyword
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    WithEqualsToken(SyntaxToken)

    Declaration
    public NumericForStatementSyntax WithEqualsToken(SyntaxToken equalsToken)
    Parameters
    Type Name Description
    SyntaxToken equalsToken
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    WithFinalValue(ExpressionSyntax)

    Declaration
    public NumericForStatementSyntax WithFinalValue(ExpressionSyntax finalValue)
    Parameters
    Type Name Description
    ExpressionSyntax finalValue
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    WithFinalValueCommaToken(SyntaxToken)

    Declaration
    public NumericForStatementSyntax WithFinalValueCommaToken(SyntaxToken finalValueCommaToken)
    Parameters
    Type Name Description
    SyntaxToken finalValueCommaToken
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    WithForKeyword(SyntaxToken)

    Declaration
    public NumericForStatementSyntax WithForKeyword(SyntaxToken forKeyword)
    Parameters
    Type Name Description
    SyntaxToken forKeyword
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    WithIdentifier(TypedIdentifierNameSyntax)

    Declaration
    public NumericForStatementSyntax WithIdentifier(TypedIdentifierNameSyntax identifier)
    Parameters
    Type Name Description
    TypedIdentifierNameSyntax identifier
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    WithInitialValue(ExpressionSyntax)

    Declaration
    public NumericForStatementSyntax WithInitialValue(ExpressionSyntax initialValue)
    Parameters
    Type Name Description
    ExpressionSyntax initialValue
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    WithSemicolonToken(SyntaxToken)

    Declaration
    public NumericForStatementSyntax WithSemicolonToken(SyntaxToken semicolonToken)
    Parameters
    Type Name Description
    SyntaxToken semicolonToken
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    WithStepValue(ExpressionSyntax)

    Declaration
    public NumericForStatementSyntax WithStepValue(ExpressionSyntax stepValue)
    Parameters
    Type Name Description
    ExpressionSyntax stepValue
    Returns
    Type Description
    NumericForStatementSyntax
    | Improve this Doc View Source

    WithStepValueCommaToken(SyntaxToken)

    Declaration
    public NumericForStatementSyntax WithStepValueCommaToken(SyntaxToken stepValueCommaToken)
    Parameters
    Type Name Description
    SyntaxToken stepValueCommaToken
    Returns
    Type Description
    NumericForStatementSyntax

    Implements

    IFormattable

    Extension Methods

    LuaExtensions.IsKind(SyntaxNode, SyntaxKind)
    LuaExtensions.Kind(SyntaxNode)
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top

    Copyright (c) LorettaDevs

    Generated by DocFX

    ☀
    ☾