DeclarationBuilder
Class in Yarn.Compiler
Inherits from System.Object
Summary
Provides methods for constructing Declaration objects.
public class DeclarationBuilderRemarks
To use this class, create an instance of it, and call the
With -prefixed methods to set properties. When you’re done, access
the Declaration property to get the final, constructed
Declaration .
Methods
| Name | Description |
|---|---|
| WithDefaultValue(System.IConvertible) | Sets the DefaultValue of the Declaration . |
| WithDescription(string?) | Sets the Description of the Declaration . |
| WithImplicit(bool) | Sets the IsImplicit of the Declaration . |
| WithName(string) | Sets the Name of the Declaration . |
| WithRange(Yarn.Compiler.Range) | Sets the Range of the Declaration . |
| WithSourceFileName(string) | Sets the SourceFileName of the Declaration . |
| WithSourceNodeName(string) | Sets the SourceNodeName of the Declaration . |
| WithType(IType) | Sets the Type of the Declaration . |
Properties
| Name | Description |
|---|---|
| Declaration | Gets the Declaration instance constructed by this DeclarationBuilder . |