Class FunctionSymbol
Represents a function exposed by a MuLang environment.
public sealed class FunctionSymbol
- Inheritance
-
FunctionSymbol
- Inherited Members
Constructors
FunctionSymbol(string, string, IEnumerable<ParameterSymbol>, TypeSymbol)
Initializes a new instance of the FunctionSymbol class.
public FunctionSymbol(string id, string name, IEnumerable<ParameterSymbol> parameters, TypeSymbol returnType)
Parameters
idstringThe provider identifier.
namestringThe language name.
parametersIEnumerable<ParameterSymbol>The function parameters.
returnTypeTypeSymbolThe function return type.
Exceptions
- ArgumentNullException
Thrown when
parametersorreturnTypeisnull.- ArgumentException
Thrown when a symbol value is invalid or a parameter name is duplicated.
Properties
Id
Gets the provider identifier.
public string Id { get; }
Property Value
Name
Gets the language name.
public string Name { get; }
Property Value
Parameters
Gets the ordered function parameters.
public IReadOnlyList<ParameterSymbol> Parameters { get; }
Property Value
ReturnType
Gets the return type.
public TypeSymbol ReturnType { get; }