DeferredTypeDiagnostic
Last updated
Last updated
Class in Yarn.Compiler
Inherits from System.Object
Represents a potential type error diagnostic message.
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 that has been deferred.
The name of the variable who's type error is being deferred