MCPcopy
hub / github.com/google/mtail / DumpAstTypes

Function DumpAstTypes

internal/runtime/options.go:50–55  ·  view source on GitHub ↗

DumpAstTypes emits the AST after type checking.

()

Source from the content-addressed store, hash-verified

48
49// DumpAstTypes emits the AST after type checking.
50func DumpAstTypes() Option {
51 return func(r *Runtime) error {
52 r.cOpts = append(r.cOpts, compiler.EmitAstTypes())
53 return nil
54 }
55}
56
57// DumpBytecode instructs the loader to print the compiled bytecode after code generation.
58func DumpBytecode() Option {

Callers 2

options.goFile · 0.92
TestRuntimeEndToEndFunction · 0.85

Calls 1

EmitAstTypesFunction · 0.92

Tested by 1

TestRuntimeEndToEndFunction · 0.68