Show / Hide Table of Contents

Class FunctionToken

Represents a parsed function from source control.

Inheritance
System.Object
FunctionToken
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
Assembly: Execution.dll
Syntax
public class FunctionToken

Constructors

| Improve this Doc View Source

FunctionToken(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 Source

BottomArguments

The bottom arguments the function takes.

Declaration
public Argument[] BottomArguments { get; }
Property Value
Type Description
Argument[]
| Improve this Doc View Source

ConnectsBefore

Whether the function connects to the one before it (starts with .)

Declaration
public bool ConnectsBefore { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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>
| Improve this Doc View Source

Name

The function's name.

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

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
| Improve this Doc View Source

Range

The inclusive range of indexes this was in its original line.

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

TopArguments

The top arguments the function takes.

Declaration
public Argument[] TopArguments { get; }
Property Value
Type Description
Argument[]

Methods

| Improve this Doc View Source

ToString()

Prettyprints some metadata about the function token.

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
  • Improve this Doc
  • View Source
Back to top Generated by DocFX