Module: Ruby2JS::Filter::SEXP
- Included in:
- ActiveFunctions, CJS, CamelCase, ESM, Functions, JQuery, JSX, Lit, Lit, MatchAll, MiniTestJasmine, Node, Node, Nokogiri, Nokogiri, React, React, Require, Return, SecureRandom, SecureRandom, Stimulus, Stimulus, TaggedTemplates, Underscore, Vue
- Defined in:
- lib/ruby2js.rb
Instance Method Summary collapse
-
#s(type, *args) ⇒ Object
construct an AST Node.
-
#S(type, *args) ⇒ Object
update existing node.
Instance Method Details
#s(type, *args) ⇒ Object
construct an AST Node
59 60 61 |
# File 'lib/ruby2js.rb', line 59 def s(type, *args) Parser::AST::Node.new type, args end |
#S(type, *args) ⇒ Object
update existing node
64 65 66 |
# File 'lib/ruby2js.rb', line 64 def S(type, *args) @ast.updated(type, args) end |