Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/compiler/crystal/tools/playground_spec.cr
Original file line number Diff line number Diff line change
@@ -64,6 +64,7 @@ describe Playground::AgentInstrumentorTransformer do
assert_agent %('c'), %(_p.i(1) { 'c' })
assert_agent %(:foo), %(_p.i(1) { :foo })
assert_agent %([1, 2]), %(_p.i(1) { [1, 2] })
assert_agent %({} of Int32 => Int32), %(_p.i(1) { {} of Int32 => Int32 })
assert_agent %(/a/), %(_p.i(1) { /a/ })
end

Original file line number Diff line number Diff line change
@@ -105,7 +105,7 @@ module Crystal
node
end

def transform(node : NilLiteral | NumberLiteral | StringLiteral | BoolLiteral | CharLiteral | SymbolLiteral | TupleLiteral | ArrayLiteral | StringInterpolation | RegexLiteral | Var | InstanceVar | ClassVar | Global | TypeOf | UnaryExpression | BinaryOp | IsA | ReadInstanceVar)
def transform(node : NilLiteral | NumberLiteral | StringLiteral | BoolLiteral | CharLiteral | SymbolLiteral | TupleLiteral | ArrayLiteral | HashLiteral | StringInterpolation | RegexLiteral | Var | InstanceVar | ClassVar | Global | TypeOf | UnaryExpression | BinaryOp | IsA | ReadInstanceVar)
instrument(node)
end

0 comments on commit 6c9c851

Please sign in to comment.