module SyntaxTree::DSL
def ARef(collection, index)
def ARef(collection, index) ARef.new(collection: collection, index: index, location: Location.default) end
def ARefField(collection, index)
def ARefField(collection, index) ARefField.new( collection: collection, index: index, location: Location.default ) end
def AliasNode(left, right)
def AliasNode(left, right) AliasNode.new(left: left, right: right, location: Location.default) end
def ArgBlock(value)
def ArgBlock(value) ArgBlock.new(value: value, location: Location.default) end
def ArgParen(arguments)
def ArgParen(arguments) ArgParen.new(arguments: arguments, location: Location.default) end
def ArgStar(value)
def ArgStar(value) ArgStar.new(value: value, location: Location.default) end
def Args(parts)
def Args(parts) Args.new(parts: parts, location: Location.default) end
def ArgsForward
def ArgsForward ArgsForward.new(location: Location.default) end
def ArrayLiteral(lbracket, contents)
def ArrayLiteral(lbracket, contents) ArrayLiteral.new( lbracket: lbracket, contents: contents, location: Location.default ) end
def AryPtn(constant, requireds, rest, posts)
def AryPtn(constant, requireds, rest, posts) AryPtn.new( constant: constant, requireds: requireds, rest: rest, posts: posts, location: Location.default ) end
def Assign(target, value)
def Assign(target, value) Assign.new(target: target, value: value, location: Location.default) end
def Assoc(key, value)
def Assoc(key, value) Assoc.new(key: key, value: value, location: Location.default) end
def AssocSplat(value)
def AssocSplat(value) AssocSplat.new(value: value, location: Location.default) end
def BEGINBlock(lbrace, statements)
def BEGINBlock(lbrace, statements) BEGINBlock.new( lbrace: lbrace, statements: statements, location: Location.default ) end
def Backref(value)
def Backref(value) Backref.new(value: value, location: Location.default) end
def Backtick(value)
def Backtick(value) Backtick.new(value: value, location: Location.default) end
def BareAssocHash(assocs)
def BareAssocHash(assocs) BareAssocHash.new(assocs: assocs, location: Location.default) end
def Begin(bodystmt)
def Begin(bodystmt) Begin.new(bodystmt: bodystmt, location: Location.default) end
def Binary(left, operator, right)
def Binary(left, operator, right) Binary.new( left: left, operator: operator, right: right, location: Location.default ) end
def BlockArg(name)
def BlockArg(name) BlockArg.new(name: name, location: Location.default) end
def BlockNode(opening, block_var, bodystmt)
def BlockNode(opening, block_var, bodystmt) BlockNode.new( opening: opening, block_var: block_var, bodystmt: bodystmt, location: Location.default ) end
def BlockVar(params, locals)
def BlockVar(params, locals) BlockVar.new(params: params, locals: locals, location: Location.default) end
def BodyStmt(
def BodyStmt( statements, rescue_clause, else_keyword, else_clause, ensure_clause ) BodyStmt.new( statements: statements, rescue_clause: rescue_clause, else_keyword: else_keyword, else_clause: else_clause, ensure_clause: ensure_clause, location: Location.default ) end
def Break(arguments)
def Break(arguments) Break.new(arguments: arguments, location: Location.default) end
def CHAR(value)
def CHAR(value) CHAR.new(value: value, location: Location.default) end
def CVar(value)
def CVar(value) CVar.new(value: value, location: Location.default) end
def CallNode(receiver, operator, message, arguments)
def CallNode(receiver, operator, message, arguments) CallNode.new( receiver: receiver, operator: operator, message: message, arguments: arguments, location: Location.default ) end
def Case(keyword, value, consequent)
def Case(keyword, value, consequent) Case.new( keyword: keyword, value: value, consequent: consequent, location: Location.default ) end
def ClassDeclaration(
def ClassDeclaration( constant, superclass, bodystmt, location = Location.default ) ClassDeclaration.new( constant: constant, superclass: superclass, bodystmt: bodystmt, location: location ) end
def Comma(value)
def Comma(value) Comma.new(value: value, location: Location.default) end
def Command(message, arguments, block, location = Location.default)
def Command(message, arguments, block, location = Location.default) Command.new( message: message, arguments: arguments, block: block, location: location ) end
def CommandCall(receiver, operator, message, arguments, block)
def CommandCall(receiver, operator, message, arguments, block) CommandCall.new( receiver: receiver, operator: operator, message: message, arguments: arguments, block: block, location: Location.default ) end
def Comment(value, inline, location = Location.default)
def Comment(value, inline, location = Location.default) Comment.new(value: value, inline: inline, location: location) end
def Const(value)
def Const(value) Const.new(value: value, location: Location.default) end
def ConstPathField(parent, constant)
def ConstPathField(parent, constant) ConstPathField.new( parent: parent, constant: constant, location: Location.default ) end
def ConstPathRef(parent, constant)
def ConstPathRef(parent, constant) ConstPathRef.new( parent: parent, constant: constant, location: Location.default ) end
def ConstRef(constant)
def ConstRef(constant) ConstRef.new(constant: constant, location: Location.default) end
def DefNode(
def DefNode( target, operator, name, params, bodystmt, location = Location.default ) DefNode.new( target: target, operator: operator, name: name, params: params, bodystmt: bodystmt, location: location ) end
def Defined(value)
def Defined(value) Defined.new(value: value, location: Location.default) end
def DynaSymbol(parts, quote)
def DynaSymbol(parts, quote) DynaSymbol.new(parts: parts, quote: quote, location: Location.default) end
def ENDBlock(lbrace, statements)
def ENDBlock(lbrace, statements) ENDBlock.new( lbrace: lbrace, statements: statements, location: Location.default ) end
def Else(keyword, statements)
def Else(keyword, statements) Else.new( keyword: keyword, statements: statements, location: Location.default ) end
def Elsif(predicate, statements, consequent)
def Elsif(predicate, statements, consequent) Elsif.new( predicate: predicate, statements: statements, consequent: consequent, location: Location.default ) end
def EmbDoc(value)
def EmbDoc(value) EmbDoc.new(value: value, location: Location.default) end
def EmbExprBeg(value)
def EmbExprBeg(value) EmbExprBeg.new(value: value, location: Location.default) end
def EmbExprEnd(value)
def EmbExprEnd(value) EmbExprEnd.new(value: value, location: Location.default) end
def EmbVar(value)
def EmbVar(value) EmbVar.new(value: value, location: Location.default) end
def EndContent(value)
def EndContent(value) EndContent.new(value: value, location: Location.default) end
def Ensure(keyword, statements)
def Ensure(keyword, statements) Ensure.new( keyword: keyword, statements: statements, location: Location.default ) end
def ExcessedComma(value)
def ExcessedComma(value) ExcessedComma.new(value: value, location: Location.default) end
def Field(parent, operator, name)
def Field(parent, operator, name) Field.new( parent: parent, operator: operator, name: name, location: Location.default ) end
def FloatLiteral(value)
def FloatLiteral(value) FloatLiteral.new(value: value, location: Location.default) end
def FndPtn(constant, left, values, right)
def FndPtn(constant, left, values, right) FndPtn.new( constant: constant, left: left, values: values, right: right, location: Location.default ) end
def For(index, collection, statements)
def For(index, collection, statements) For.new( index: index, collection: collection, statements: statements, location: Location.default ) end
def GVar(value)
def GVar(value) GVar.new(value: value, location: Location.default) end
def HashLiteral(lbrace, assocs)
def HashLiteral(lbrace, assocs) HashLiteral.new( lbrace: lbrace, assocs: assocs, location: Location.default ) end
def Heredoc(beginning, ending, dedent, parts)
def Heredoc(beginning, ending, dedent, parts) Heredoc.new( beginning: beginning, ending: ending, dedent: dedent, parts: parts, location: Location.default ) end
def HeredocBeg(value)
def HeredocBeg(value) HeredocBeg.new(value: value, location: Location.default) end
def HeredocEnd(value)
def HeredocEnd(value) HeredocEnd.new(value: value, location: Location.default) end
def HshPtn(constant, keywords, keyword_rest)
def HshPtn(constant, keywords, keyword_rest) HshPtn.new( constant: constant, keywords: keywords, keyword_rest: keyword_rest, location: Location.default ) end
def IVar(value)
def IVar(value) IVar.new(value: value, location: Location.default) end
def Ident(value)
def Ident(value) Ident.new(value: value, location: Location.default) end
def IfNode(predicate, statements, consequent)
def IfNode(predicate, statements, consequent) IfNode.new( predicate: predicate, statements: statements, consequent: consequent, location: Location.default ) end
def IfOp(predicate, truthy, falsy)
def IfOp(predicate, truthy, falsy) IfOp.new( predicate: predicate, truthy: truthy, falsy: falsy, location: Location.default ) end
def Imaginary(value)
def Imaginary(value) Imaginary.new(value: value, location: Location.default) end
def In(pattern, statements, consequent)
def In(pattern, statements, consequent) In.new( pattern: pattern, statements: statements, consequent: consequent, location: Location.default ) end
def Int(value)
def Int(value) Int.new(value: value, location: Location.default) end
def Kw(value)
def Kw(value) Kw.new(value: value, location: Location.default) end
def KwRestParam(name)
def KwRestParam(name) KwRestParam.new(name: name, location: Location.default) end
def LBrace(value)
def LBrace(value) LBrace.new(value: value, location: Location.default) end
def LBracket(value)
def LBracket(value) LBracket.new(value: value, location: Location.default) end
def LParen(value)
def LParen(value) LParen.new(value: value, location: Location.default) end
def Label(value)
def Label(value) Label.new(value: value, location: Location.default) end
def LabelEnd(value)
def LabelEnd(value) LabelEnd.new(value: value, location: Location.default) end
def Lambda(params, statements)
def Lambda(params, statements) Lambda.new( params: params, statements: statements, location: Location.default ) end
def LambdaVar(params, locals)
def LambdaVar(params, locals) LambdaVar.new(params: params, locals: locals, location: Location.default) end
def MAssign(target, value)
def MAssign(target, value) MAssign.new(target: target, value: value, location: Location.default) end
def MLHS(parts, comma)
def MLHS(parts, comma) MLHS.new(parts: parts, comma: comma, location: Location.default) end
def MLHSParen(contents, comma)
def MLHSParen(contents, comma) MLHSParen.new( contents: contents, comma: comma, location: Location.default ) end
def MRHS(parts)
def MRHS(parts) MRHS.new(parts: parts, location: Location.default) end
def MethodAddBlock(call, block, location = Location.default)
def MethodAddBlock(call, block, location = Location.default) MethodAddBlock.new(call: call, block: block, location: location) end
def ModuleDeclaration(constant, bodystmt)
def ModuleDeclaration(constant, bodystmt) ModuleDeclaration.new( constant: constant, bodystmt: bodystmt, location: Location.default ) end
def Next(arguments)
def Next(arguments) Next.new(arguments: arguments, location: Location.default) end
def Not(statement, parentheses)
def Not(statement, parentheses) Not.new( statement: statement, parentheses: parentheses, location: Location.default ) end
def Op(value)
def Op(value) Op.new(value: value, location: Location.default) end
def OpAssign(target, operator, value)
def OpAssign(target, operator, value) OpAssign.new( target: target, operator: operator, value: value, location: Location.default ) end
def Params(requireds, optionals, rest, posts, keywords, keyword_rest, block)
def Params(requireds, optionals, rest, posts, keywords, keyword_rest, block) Params.new( requireds: requireds, optionals: optionals, rest: rest, posts: posts, keywords: keywords, keyword_rest: keyword_rest, block: block, location: Location.default ) end
def Paren(lparen, contents)
def Paren(lparen, contents) Paren.new(lparen: lparen, contents: contents, location: Location.default) end
def Period(value)
def Period(value) Period.new(value: value, location: Location.default) end
def PinnedBegin(statement)
def PinnedBegin(statement) PinnedBegin.new(statement: statement, location: Location.default) end
def PinnedVarRef(value)
def PinnedVarRef(value) PinnedVarRef.new(value: value, location: Location.default) end
def Program(statements)
def Program(statements) Program.new(statements: statements, location: Location.default) end
def QSymbols(beginning, elements)
def QSymbols(beginning, elements) QSymbols.new( beginning: beginning, elements: elements, location: Location.default ) end
def QSymbolsBeg(value)
def QSymbolsBeg(value) QSymbolsBeg.new(value: value, location: Location.default) end
def QWords(beginning, elements)
def QWords(beginning, elements) QWords.new( beginning: beginning, elements: elements, location: Location.default ) end
def QWordsBeg(value)
def QWordsBeg(value) QWordsBeg.new(value: value, location: Location.default) end
def RAssign(value, operator, pattern)
def RAssign(value, operator, pattern) RAssign.new( value: value, operator: operator, pattern: pattern, location: Location.default ) end
def RBrace(value)
def RBrace(value) RBrace.new(value: value, location: Location.default) end
def RBracket(value)
def RBracket(value) RBracket.new(value: value, location: Location.default) end
def RParen(value)
def RParen(value) RParen.new(value: value, location: Location.default) end
def RangeNode(left, operator, right)
def RangeNode(left, operator, right) RangeNode.new( left: left, operator: operator, right: right, location: Location.default ) end
def RationalLiteral(value)
def RationalLiteral(value) RationalLiteral.new(value: value, location: Location.default) end
def Redo
def Redo Redo.new(location: Location.default) end
def RegexpBeg(value)
def RegexpBeg(value) RegexpBeg.new(value: value, location: Location.default) end
def RegexpContent(beginning, parts)
def RegexpContent(beginning, parts) RegexpContent.new( beginning: beginning, parts: parts, location: Location.default ) end
def RegexpEnd(value)
def RegexpEnd(value) RegexpEnd.new(value: value, location: Location.default) end
def RegexpLiteral(beginning, ending, parts)
def RegexpLiteral(beginning, ending, parts) RegexpLiteral.new( beginning: beginning, ending: ending, parts: parts, location: Location.default ) end
def Rescue(keyword, exception, statements, consequent)
def Rescue(keyword, exception, statements, consequent) Rescue.new( keyword: keyword, exception: exception, statements: statements, consequent: consequent, location: Location.default ) end
def RescueEx(exceptions, variable)
def RescueEx(exceptions, variable) RescueEx.new( exceptions: exceptions, variable: variable, location: Location.default ) end
def RescueMod(statement, value)
def RescueMod(statement, value) RescueMod.new( statement: statement, value: value, location: Location.default ) end
def RestParam(name)
def RestParam(name) RestParam.new(name: name, location: Location.default) end
def Retry
def Retry Retry.new(location: Location.default) end
def ReturnNode(arguments)
def ReturnNode(arguments) ReturnNode.new(arguments: arguments, location: Location.default) end
def SClass(target, bodystmt)
def SClass(target, bodystmt) SClass.new(target: target, bodystmt: bodystmt, location: Location.default) end
def Statements(body)
def Statements(body) Statements.new(body: body, location: Location.default) end
def StringConcat(left, right)
def StringConcat(left, right) StringConcat.new(left: left, right: right, location: Location.default) end
def StringContent(parts)
def StringContent(parts) StringContent.new(parts: parts, location: Location.default) end
def StringDVar(variable)
def StringDVar(variable) StringDVar.new(variable: variable, location: Location.default) end
def StringEmbExpr(statements)
def StringEmbExpr(statements) StringEmbExpr.new(statements: statements, location: Location.default) end
def StringLiteral(parts, quote)
def StringLiteral(parts, quote) StringLiteral.new(parts: parts, quote: quote, location: Location.default) end
def Super(arguments)
def Super(arguments) Super.new(arguments: arguments, location: Location.default) end
def SymBeg(value)
def SymBeg(value) SymBeg.new(value: value, location: Location.default) end
def SymbolContent(value)
def SymbolContent(value) SymbolContent.new(value: value, location: Location.default) end
def SymbolLiteral(value)
def SymbolLiteral(value) SymbolLiteral.new(value: value, location: Location.default) end
def Symbols(beginning, elements)
def Symbols(beginning, elements) Symbols.new( beginning: beginning, elements: elements, location: Location.default ) end
def SymbolsBeg(value)
def SymbolsBeg(value) SymbolsBeg.new(value: value, location: Location.default) end
def TLamBeg(value)
def TLamBeg(value) TLamBeg.new(value: value, location: Location.default) end
def TLambda(value)
def TLambda(value) TLambda.new(value: value, location: Location.default) end
def TStringBeg(value)
def TStringBeg(value) TStringBeg.new(value: value, location: Location.default) end
def TStringContent(value)
def TStringContent(value) TStringContent.new(value: value, location: Location.default) end
def TStringEnd(value)
def TStringEnd(value) TStringEnd.new(value: value, location: Location.default) end
def TopConstField(constant)
def TopConstField(constant) TopConstField.new(constant: constant, location: Location.default) end
def TopConstRef(constant)
def TopConstRef(constant) TopConstRef.new(constant: constant, location: Location.default) end
def Unary(operator, statement)
def Unary(operator, statement) Unary.new( operator: operator, statement: statement, location: Location.default ) end
def Undef(symbols)
def Undef(symbols) Undef.new(symbols: symbols, location: Location.default) end
def UnlessNode(predicate, statements, consequent)
def UnlessNode(predicate, statements, consequent) UnlessNode.new( predicate: predicate, statements: statements, consequent: consequent, location: Location.default ) end
def UntilNode(predicate, statements)
def UntilNode(predicate, statements) UntilNode.new( predicate: predicate, statements: statements, location: Location.default ) end
def VCall(value)
def VCall(value) VCall.new(value: value, location: Location.default) end
def VarField(value)
def VarField(value) VarField.new(value: value, location: Location.default) end
def VarRef(value)
def VarRef(value) VarRef.new(value: value, location: Location.default) end
def VoidStmt
def VoidStmt VoidStmt.new(location: Location.default) end
def When(arguments, statements, consequent)
def When(arguments, statements, consequent) When.new( arguments: arguments, statements: statements, consequent: consequent, location: Location.default ) end
def WhileNode(predicate, statements)
def WhileNode(predicate, statements) WhileNode.new( predicate: predicate, statements: statements, location: Location.default ) end
def Word(parts)
def Word(parts) Word.new(parts: parts, location: Location.default) end
def Words(beginning, elements)
def Words(beginning, elements) Words.new( beginning: beginning, elements: elements, location: Location.default ) end
def WordsBeg(value)
def WordsBeg(value) WordsBeg.new(value: value, location: Location.default) end
def XString(parts)
def XString(parts) XString.new(parts: parts, location: Location.default) end
def XStringLiteral(parts)
def XStringLiteral(parts) XStringLiteral.new(parts: parts, location: Location.default) end
def YieldNode(arguments)
def YieldNode(arguments) YieldNode.new(arguments: arguments, location: Location.default) end
def ZSuper
def ZSuper ZSuper.new(location: Location.default) end