Sha256: a74e11efeaa097873d9973390d5af5b2e9585481370c0e241216c7bd286bd206
Contents?: true
Size: 458 Bytes
Versions: 52
Compression:
Stored size: 458 Bytes
Contents
module Ruby2JS class Converter # (const nil :C) handle :const do |receiver, name| # resolve anonymous receivers against rbstack receiver ||= @rbstack.map {|rb| rb[name]}.compact.last if receiver if Parser::AST::Node === receiver and receiver.type == :cbase put 'Function("return this")().' else parse receiver put '.' end end put name end end end
Version data entries
52 entries across 52 versions & 1 rubygems