CompilationJob.CreateFromString(string,string,Library?,int)

Method in CompilationJob

Summary

Creates a new CompilationJob using the contents of a string.

public static CompilationJob CreateFromString(string fileName, string source, Library? library = null, int languageVersion = Project.CurrentProjectFileVersion)

Parameters

NameDescription
string fileNameThe name to assign to the compiled file.
string sourceThe text to compile.
Yarn.Library libraryLibrary of function definitions to use during compilation.
int languageVersionThe version of the Yarn language to use.

Returns

A new CompilationJob .