Class FunctionArg
Represents a function argument to any function or a parameter a declared function takes.
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: Fluency.Execution.Parsing.Entities.ArgumentTypes
Assembly: Execution.dll
Syntax
public class FunctionArg : Argument
Properties
| Improve this Doc View SourceDeclaredType
If this is a declaration of a parameter, what type is it
Declaration
public FluencyType DeclaredType { get; }
Property Value
| Type | Description |
|---|---|
| FluencyType |
FunctionName
The name of the function or parameter this instance represents.
Declaration
public string FunctionName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Type
The Fluency type this object is.
Declaration
public override FluencyType Type { get; }
Property Value
| Type | Description |
|---|---|
| FluencyType |
Overrides
Methods
| Improve this Doc View SourceToString()
Return the stored function name.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
TryParseArg(String)
If str represents a function name (no quotes, letters only), make a FuncArg. Otherwise, return null. In a declaration, function names can have a type, such as int n.
Declaration
public static FunctionArg TryParseArg(string str)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | str |
Returns
| Type | Description |
|---|---|
| FunctionArg |
Value()
Get the value this argument represents.
Declaration
protected override object Value()
Returns
| Type | Description |
|---|---|
| System.Object |