Declaration

Class in Yarn.Compiler

Inherits from System.Object

Summary

public class Declaration

Constructors

Name
Description

Fields

Name
Description

The string used for SourceFileName if the Declaration was found outside of a Yarn source file.

Methods

Name
Description

Creates a new instance of the Declaration class, using the given name and default value. The ReturnType of the new instance will be configured based on the type of defaultValue , and the DeclarationType will be Type.Variable . All other properties will be their default values.

Properties

Name
Description

Gets the default value of this Declaration , if no value has been specified in code or is available from a Dialogue 's IVariableStorage .

Gets a string describing the purpose of this Declaration .

Get or sets a value indicating whether this Declaration was implicitly inferred from usage.

Gets the name of this Declaration.

The line number at which this Declaration was found in the source file.

Gets the name of the file in which this Declaration was found.

Gets the line number at which this Declaration was found in the node indicated by SourceNodeName .

Gets the name of the node in which this Declaration was found.

Last updated

Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.