Show / Hide Table of Contents

Class FunctionArg

Represents a function argument to any function or a parameter a declared function takes.

Inheritance
System.Object
Argument
FunctionArg
Inherited Members
Argument.TryParse(String, Argument)
Argument.GetAs<T>()
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 Source

DeclaredType

If this is a declaration of a parameter, what type is it

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

FunctionName

The name of the function or parameter this instance represents.

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

Type

The Fluency type this object is.

Declaration
public override FluencyType Type { get; }
Property Value
Type Description
FluencyType
Overrides
Argument.Type

Methods

| Improve this Doc View Source

ToString()

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

Value()

Get the value this argument represents.

Declaration
protected override object Value()
Returns
Type Description
System.Object
Overrides
Argument.Value()
  • Improve this Doc
  • View Source
Back to top Generated by DocFX