Search Results for

    Show / Hide Table of Contents

    Class FunctionTypeSyntax

    This node represents a function type.

    Inheritance
    System.Object
    SyntaxNode
    LuaSyntaxNode
    TypeSyntax
    FunctionTypeSyntax
    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 FunctionTypeSyntax : TypeSyntax
    Remarks

    This node is associated with the following syntax kinds:

    • FunctionType

    Properties

    | Improve this Doc View Source

    CloseParenthesisToken

    Gets the ) token.

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

    MinusGreaterThanToken

    Gets the -> token.

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

    OpenParenthesisToken

    Gets the ( token.

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

    Parameters

    Gets the list of the function type's parameters.

    Declaration
    public SeparatedSyntaxList<FunctionTypeParameterSyntax> Parameters { get; }
    Property Value
    Type Description
    SeparatedSyntaxList<FunctionTypeParameterSyntax>
    | Improve this Doc View Source

    ReturnType

    The return type of the function type.

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

    TypeParameterList

    Gets the type parameter list for this function (if any).

    Declaration
    public TypeParameterListSyntax TypeParameterList { get; }
    Property Value
    Type Description
    TypeParameterListSyntax

    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

    AddParameters(FunctionTypeParameterSyntax[])

    Declaration
    public FunctionTypeSyntax AddParameters(params FunctionTypeParameterSyntax[] items)
    Parameters
    Type Name Description
    FunctionTypeParameterSyntax[] items
    Returns
    Type Description
    FunctionTypeSyntax
    | Improve this Doc View Source

    AddTypeParameterListNames(TypeParameterSyntax[])

    Declaration
    public FunctionTypeSyntax AddTypeParameterListNames(params TypeParameterSyntax[] items)
    Parameters
    Type Name Description
    TypeParameterSyntax[] items
    Returns
    Type Description
    FunctionTypeSyntax
    | Improve this Doc View Source

    Update(TypeParameterListSyntax, SyntaxToken, SeparatedSyntaxList<FunctionTypeParameterSyntax>, SyntaxToken, SyntaxToken, TypeSyntax)

    Declaration
    public FunctionTypeSyntax Update(TypeParameterListSyntax typeParameterList, SyntaxToken openParenthesisToken, SeparatedSyntaxList<FunctionTypeParameterSyntax> parameters, SyntaxToken closeParenthesisToken, SyntaxToken minusGreaterThanToken, TypeSyntax returnType)
    Parameters
    Type Name Description
    TypeParameterListSyntax typeParameterList
    SyntaxToken openParenthesisToken
    SeparatedSyntaxList<FunctionTypeParameterSyntax> parameters
    SyntaxToken closeParenthesisToken
    SyntaxToken minusGreaterThanToken
    TypeSyntax returnType
    Returns
    Type Description
    FunctionTypeSyntax
    | Improve this Doc View Source

    WithCloseParenthesisToken(SyntaxToken)

    Declaration
    public FunctionTypeSyntax WithCloseParenthesisToken(SyntaxToken closeParenthesisToken)
    Parameters
    Type Name Description
    SyntaxToken closeParenthesisToken
    Returns
    Type Description
    FunctionTypeSyntax
    | Improve this Doc View Source

    WithMinusGreaterThanToken(SyntaxToken)

    Declaration
    public FunctionTypeSyntax WithMinusGreaterThanToken(SyntaxToken minusGreaterThanToken)
    Parameters
    Type Name Description
    SyntaxToken minusGreaterThanToken
    Returns
    Type Description
    FunctionTypeSyntax
    | Improve this Doc View Source

    WithOpenParenthesisToken(SyntaxToken)

    Declaration
    public FunctionTypeSyntax WithOpenParenthesisToken(SyntaxToken openParenthesisToken)
    Parameters
    Type Name Description
    SyntaxToken openParenthesisToken
    Returns
    Type Description
    FunctionTypeSyntax
    | Improve this Doc View Source

    WithParameters(SeparatedSyntaxList<FunctionTypeParameterSyntax>)

    Declaration
    public FunctionTypeSyntax WithParameters(SeparatedSyntaxList<FunctionTypeParameterSyntax> parameters)
    Parameters
    Type Name Description
    SeparatedSyntaxList<FunctionTypeParameterSyntax> parameters
    Returns
    Type Description
    FunctionTypeSyntax
    | Improve this Doc View Source

    WithReturnType(TypeSyntax)

    Declaration
    public FunctionTypeSyntax WithReturnType(TypeSyntax returnType)
    Parameters
    Type Name Description
    TypeSyntax returnType
    Returns
    Type Description
    FunctionTypeSyntax
    | Improve this Doc View Source

    WithTypeParameterList(TypeParameterListSyntax)

    Declaration
    public FunctionTypeSyntax WithTypeParameterList(TypeParameterListSyntax typeParameterList)
    Parameters
    Type Name Description
    TypeParameterListSyntax typeParameterList
    Returns
    Type Description
    FunctionTypeSyntax

    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

    ☀
    ☾