Search Results for

    Show / Hide Table of Contents

    Interface IVariable

    The base interface for variables

    Namespace: Loretta.CodeAnalysis.Lua
    Assembly: Loretta.CodeAnalysis.Lua.dll
    Syntax
    public interface IVariable

    Properties

    | Improve this Doc View Source

    CapturingScopes

    All scopes that capture this variable as an upvalue.

    Declaration
    IEnumerable<IScope> CapturingScopes { get; }
    Property Value
    Type Description
    IEnumerable<IScope>
    | Improve this Doc View Source

    ContainingScope

    The containing scope.

    Declaration
    IScope ContainingScope { get; }
    Property Value
    Type Description
    IScope
    | Improve this Doc View Source

    Declaration

    The node where this variable is declared.

    Declaration
    SyntaxNode Declaration { get; }
    Property Value
    Type Description
    SyntaxNode
    Remarks

    null if it is a global or implicit variable.

    | Improve this Doc View Source

    Kind

    The kind of this variable.

    Declaration
    VariableKind Kind { get; }
    Property Value
    Type Description
    VariableKind
    | Improve this Doc View Source

    Name

    The variable's name.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    ReadLocations

    All locations this variable is read from.

    Declaration
    IEnumerable<SyntaxNode> ReadLocations { get; }
    Property Value
    Type Description
    IEnumerable<SyntaxNode>
    | Improve this Doc View Source

    ReferencingScopes

    The scopes that reference this variable.

    Declaration
    IEnumerable<IScope> ReferencingScopes { get; }
    Property Value
    Type Description
    IEnumerable<IScope>
    | Improve this Doc View Source

    WriteLocations

    All locations this variable is written to.

    Declaration
    IEnumerable<SyntaxNode> WriteLocations { get; }
    Property Value
    Type Description
    IEnumerable<SyntaxNode>

    Methods

    | Improve this Doc View Source

    CanBeAccessedIn(IScope)

    Returns whether this variable can be accessed in the provided scope.

    Declaration
    bool CanBeAccessedIn(IScope scope)
    Parameters
    Type Name Description
    IScope scope

    The scope to check access in.

    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top

    Copyright (c) LorettaDevs

    Generated by DocFX

    ☀
    ☾