All pages
Powered by GitBook
1 of 4

Loading...

Loading...

Loading...

Loading...

WithParameter(IType)

Method in FunctionTypeBuilder

Summary

Adds a new parameter of type parameterType to the FunctionType .

public FunctionTypeBuilder WithParameter(IType parameterType)

Parameters

Name
Description

parameterType

The instance that received this method call.

The type of the new parameter to add to the function.

Returns

FunctionTypeBuilder
Yarn.IType

FunctionTypeBuilder

Class in Yarn.Compiler

Inherits from System.Object

Summary

Provides methods for constructing FunctionType objects.

public class FunctionTypeBuilder

Remarks

To 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 .

Methods

Name
Description
Name
Description

Adds a new parameter of type parameterType to the .

Sets the of the .

Gets the instance constructed by this .

Properties

WithParameter(IType)
FunctionType
WithReturnType(IType)
ReturnType
FunctionType
FunctionType
FunctionType
FunctionTypeBuilder

WithReturnType(IType)

Method in FunctionTypeBuilder

Summary

Sets the ReturnType of the FunctionType .

public FunctionTypeBuilder WithReturnType(IType returnType)

Parameters

Name
Description

returnType

The return type to apply to the function.

Returns

The instance that received this method call.

FunctionType

Property in

Gets the instance constructed by this .

FunctionTypeBuilder
Yarn.IType
public FunctionType FunctionType { get; };

Summary

FunctionTypeBuilder
FunctionType
FunctionTypeBuilder