Table of Contents

Class LuauCompileOptions

Namespace
LuauInterop.Compilation
Assembly
LuauInterop.dll

Represents the options for compiling a Luau chunk.

public sealed class LuauCompileOptions
Inheritance
LuauCompileOptions
Inherited Members

Properties

CoverageLevel

Sets Luau compiler code coverage level. Possible values are: 0 - no code coverage support (default) 1 - statement coverage 2 - statement and expression coverage (verbose)

public int CoverageLevel { get; init; }

Property Value

int

DebugLevel

Sets Luau compiler debug level. Possible values are: 0 - no debug information emitted 1 - line info and function names only; sufficient for backtraces (default) 2 - full debug info with local and upvalue names; necessary for debuggers

public int DebugLevel { get; init; }

Property Value

int

OptimizationLevel

Sets Luau compiler optimization level. Possible values are: 0 - no optimizations 1 - baseline optimization level that doesn’t prevent debuggability (default) 2 - aggressive optimizations that may make debugging difficult

public int OptimizationLevel { get; init; }

Property Value

int

TypeInfoLevel

Sets Luau type information level used to guide native code generation decisions. Possible values are: 0 - generate for native modules (default) 1 - generate for all modules

public int TypeInfoLevel { get; init; }

Property Value

int