module

VisualCompiler

Constants

DEFAULT_TRACE_PRELUDE = "nano"
MAX_INPUT_BYTES = 1000000
REQUEST_TIMEOUT_SECONDS = 120
VERSION = "0.1.0"

Instance methods

build_diff(before : Array(String), after : Array(String), limit = 120)
Source
build_semantic_summary(program_metadata : Hash(String, JSON::Any) | Nil) : Hash(String, JSON::Any) | Nil
Source
build_trace_response(source : String, snapshots : Array(Snapshot), llvm_ir : String, compile_log : String, program_metadata : Hash(String, JSON::Any) | Nil, semantic_summary : Hash(String, JSON::Any) | Nil, prelude : String)
Source
child_nodes(node : Crystal::ASTNode)
Source
compile_llvm_ir(source : String, prelude : String, no_debug : Bool = false)
Source
default_crystal_path
Source
diff_count_lines(before : Hash(String, Int64), after : Hash(String, Int64))
Source
elapsed_ms(started : Time::Instant)
Source
error_response(ex : Exception, source : String, snapshots : Array(Snapshot), llvm_ir : String, program_metadata : Hash(String, JSON::Any) | Nil, semantic_summary : Hash(String, JSON::Any) | Nil, prelude : String)
Source
extract_program_metadata(source : String, prelude : String, no_debug : Bool = false) : Hash(String, JSON::Any) | Nil
Source
flatten_tree(root : Crystal::ASTNode)
Source
metadata_counts(program_metadata : Hash(String, JSON::Any) | Nil)
Source
node_label(node : Crystal::ASTNode)
Source
read_no_debug(env) : Bool
Source
read_prelude(env) : String
Source
read_source(env) : String
Source
trace(source : String, prelude : String, no_debug : Bool = false)
Source
walk(node : Crystal::ASTNode, depth = 0, &block : Crystal::ASTNode, Int32 -> )
Source
with_timeout(seconds : Int32, &block : -> String)
Source

Nested types