Class in Yarn.Compiler

Inherits from System.Object


Represents a potential type error diagnostic message.

public class DeferredTypeDiagnostic


Because a variable can be declared in a scope different from the current yarn file, or even externally, when we first hit upon any variables of which we don't know the type of we create a deferred diagnostic. The idea being that we are hoping another file or step will give the information needed to resolved the type. Later once the compiler has finished parsing every file we can see if any of these weren't resolved. If they were not they will be promoted into a full diagnostic and presented to the user.



Convenience method for constructing new deferred type diagnostics



The Diagnostic that has been deferred.

The name of the variable who's type error is being deferred

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.