Class in Yarn.Compiler
Inherits from System.Object
Provides methods for constructing FunctionType objects.
public class FunctionTypeBuilderTo use this class, create an instance of it, and call the With -prefixed methods to set properties. When you're done, access the FunctionType property to get the final, constructed FunctionType .
Property in
Gets the instance constructed by this .
public FunctionType FunctionType { get; };Adds a new parameter of type parameterType to the .
Sets the of the .
Gets the instance constructed by this .
Method in FunctionTypeBuilder
Adds a new parameter of type parameterType to the FunctionType .
public FunctionTypeBuilder WithParameter(IType parameterType)parameterType
The instance that received this method call.
The type of the new parameter to add to the function.
Method in FunctionTypeBuilder
Sets the ReturnType of the FunctionType .
public FunctionTypeBuilder WithReturnType(IType returnType)returnType
The return type to apply to the function.
The instance that received this method call.