Class FunctionToken
Represents a parsed function from source control.
Inheritance
Inherited Members
Namespace: Fluency.Execution.Parsing.Entities
Assembly: Execution.dll
Syntax
public class FunctionToken
Constructors
| Improve this Doc View SourceFunctionToken(String, Int32, Int32)
Create a new function token.
Declaration
public FunctionToken(string toparse, int start, int end)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | toparse | |
| System.Int32 | start | The first index into the line containing this function. |
| System.Int32 | end | The last index into the line containing this function. |
Properties
| Improve this Doc View SourceBottomArguments
The bottom arguments the function takes.
Declaration
public Argument[] BottomArguments { get; }
Property Value
| Type | Description |
|---|---|
| Argument[] |
ConnectsBefore
Whether the function connects to the one before it (starts with .)
Declaration
public bool ConnectsBefore { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ConnectsUpAfter
Whether the function connects to the one above it for output (ends with ./)
Declaration
public bool ConnectsUpAfter { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ConnectsUpBefore
Whether the function connects to the one above it for input (starts with .)
Declaration
public bool ConnectsUpBefore { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Line
The line number this function was on. Not available when constructed, has to be set from the outside for better metadata and error location.
Declaration
public int? Line { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Name
The function's name.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Original
What the function looked like before it got spaces, periods, and slashes trimmed.
Declaration
public string Original { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Range
The inclusive range of indexes this was in its original line.
Declaration
public SourceRange Range { get; }
Property Value
| Type | Description |
|---|---|
| SourceRange |
TopArguments
The top arguments the function takes.
Declaration
public Argument[] TopArguments { get; }
Property Value
| Type | Description |
|---|---|
| Argument[] |
Methods
| Improve this Doc View SourceToString()
Prettyprints some metadata about the function token.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |