Skip to content

Commit

Permalink
Playground: missing instrumentation of HashLiteral (#5147)
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite authored and RX14 committed Oct 20, 2017
1 parent 77f4067 commit 6c9c851
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/compiler/crystal/tools/playground_spec.cr
Expand Up @@ -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

Expand Down
Expand Up @@ -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

Expand Down

0 comments on commit 6c9c851

Please sign in to comment.