Skip to content

struct Crystal::Program::CompiledMacroRun
inherits Struct

A cache of compiled "macro run" files. The keys are filenames that were compiled, the values are executable filenames ready to be run (so they don't need to be compiled twice), together with the time it took to compile them and whether a previous compilation was reused. The elapsed time is only needed for stats.

Class methods

.new(filename : String, elapsed : Time::Span, reused : Bool)

View source

Methods

#clone

View source

#copy_with(filename _filename = @filename, elapsed _elapsed = @elapsed, reused _reused = @reused)

View source

#elapsed : Time::Span

#filename : String

#reused : Bool