@appthreat/atom 2.1.18 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{plugins/composer/LICENSE → LICENSE} +6 -6
- package/README.md +2 -2
- package/index.js +4 -8
- package/package.json +20 -13
- package/packages/atom-parsetools/LICENSE +21 -0
- package/{astgen.js → packages/atom-parsetools/astgen.js} +1 -1
- package/packages/atom-parsetools/index.js +1 -0
- package/{phpastgen.js → packages/atom-parsetools/phpastgen.js} +1 -1
- package/{rbastgen.js → packages/atom-parsetools/rbastgen.js} +1 -1
- package/{scalasem.js → packages/atom-parsetools/scalasem.js} +1 -1
- package/plugins/bin/atom +1 -1
- package/plugins/bin/atom.bat +1 -1
- package/plugins/lib/io.appthreat.atom-2.2.0-classpath.jar +0 -0
- package/plugins/lib/{io.appthreat.atom-2.1.18.jar → io.appthreat.atom-2.2.0.jar} +0 -0
- package/plugins/lib/{io.appthreat.c2cpg_3-2.3.8.jar → io.appthreat.c2cpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.dataflowengineoss_3-2.3.8.jar → io.appthreat.dataflowengineoss_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.javasrc2cpg_3-2.3.8.jar → io.appthreat.javasrc2cpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.jimple2cpg_3-2.3.8.jar → io.appthreat.jimple2cpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.jssrc2cpg_3-2.3.8.jar → io.appthreat.jssrc2cpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.php2atom_3-2.3.8.jar → io.appthreat.php2atom_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.pysrc2cpg_3-2.3.8.jar → io.appthreat.pysrc2cpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.ruby2atom_3-2.3.8.jar → io.appthreat.ruby2atom_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.semanticcpg_3-2.3.8.jar → io.appthreat.semanticcpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.x2cpg_3-2.3.8.jar → io.appthreat.x2cpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.circe.circe-core_3-0.14.12.jar → io.circe.circe-core_3-0.14.13.jar} +0 -0
- package/plugins/lib/{io.circe.circe-generic_3-0.14.12.jar → io.circe.circe-generic_3-0.14.13.jar} +0 -0
- package/plugins/lib/{io.circe.circe-jawn_3-0.14.12.jar → io.circe.circe-jawn_3-0.14.13.jar} +0 -0
- package/plugins/lib/{io.circe.circe-numbers_3-0.14.12.jar → io.circe.circe-numbers_3-0.14.13.jar} +0 -0
- package/plugins/lib/{io.circe.circe-parser_3-0.14.12.jar → io.circe.circe-parser_3-0.14.13.jar} +0 -0
- package/plugins/lib/{org.scala-lang.scala3-library_3-3.6.2.jar → org.scala-lang.scala3-library_3-3.6.4.jar} +0 -0
- package/plugins/autoload.php +0 -22
- package/plugins/bin/bundler +0 -14
- package/plugins/bin/php-parse +0 -119
- package/plugins/bin/ruby_ast_gen +0 -14
- package/plugins/composer/ClassLoader.php +0 -579
- package/plugins/composer/InstalledVersions.php +0 -396
- package/plugins/composer/autoload_classmap.php +0 -260
- package/plugins/composer/autoload_namespaces.php +0 -9
- package/plugins/composer/autoload_psr4.php +0 -10
- package/plugins/composer/autoload_real.php +0 -36
- package/plugins/composer/autoload_static.php +0 -286
- package/plugins/composer/installed.json +0 -65
- package/plugins/composer/installed.php +0 -32
- package/plugins/lib/io.appthreat.atom-2.1.18-classpath.jar +0 -0
- package/plugins/nikic/php-parser/LICENSE +0 -29
- package/plugins/nikic/php-parser/README.md +0 -225
- package/plugins/nikic/php-parser/bin/php-parse +0 -205
- package/plugins/nikic/php-parser/composer.json +0 -41
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/ClassConst.php +0 -148
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Class_.php +0 -146
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Declaration.php +0 -43
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/EnumCase.php +0 -85
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Enum_.php +0 -117
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php +0 -73
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Function_.php +0 -67
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Interface_.php +0 -93
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Method.php +0 -146
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php +0 -45
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Param.php +0 -168
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Property.php +0 -161
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/TraitUse.php +0 -64
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/TraitUseAdaptation.php +0 -148
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Trait_.php +0 -78
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Use_.php +0 -49
- package/plugins/nikic/php-parser/lib/PhpParser/Builder.php +0 -13
- package/plugins/nikic/php-parser/lib/PhpParser/BuilderFactory.php +0 -399
- package/plugins/nikic/php-parser/lib/PhpParser/BuilderHelpers.php +0 -335
- package/plugins/nikic/php-parser/lib/PhpParser/Comment/Doc.php +0 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Comment.php +0 -239
- package/plugins/nikic/php-parser/lib/PhpParser/ConstExprEvaluationException.php +0 -6
- package/plugins/nikic/php-parser/lib/PhpParser/ConstExprEvaluator.php +0 -229
- package/plugins/nikic/php-parser/lib/PhpParser/Error.php +0 -180
- package/plugins/nikic/php-parser/lib/PhpParser/ErrorHandler/Collecting.php +0 -46
- package/plugins/nikic/php-parser/lib/PhpParser/ErrorHandler/Throwing.php +0 -18
- package/plugins/nikic/php-parser/lib/PhpParser/ErrorHandler.php +0 -13
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/DiffElem.php +0 -27
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/Differ.php +0 -164
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/PrintableNewAnonClassNode.php +0 -64
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/TokenStream.php +0 -286
- package/plugins/nikic/php-parser/lib/PhpParser/JsonDecoder.php +0 -103
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php +0 -251
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AttributeEmulator.php +0 -56
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/CoaleseEqualTokenEmulator.php +0 -47
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/EnumTokenEmulator.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php +0 -44
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/FlexibleDocStringEmulator.php +0 -76
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/FnTokenEmulator.php +0 -23
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/KeywordEmulator.php +0 -62
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/MatchTokenEmulator.php +0 -23
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/NullsafeTokenEmulator.php +0 -67
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/NumericLiteralSeparatorEmulator.php +0 -105
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ReadonlyFunctionTokenEmulator.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ReadonlyTokenEmulator.php +0 -36
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ReverseEmulator.php +0 -36
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/TokenEmulator.php +0 -25
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer.php +0 -560
- package/plugins/nikic/php-parser/lib/PhpParser/NameContext.php +0 -285
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Arg.php +0 -46
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Attribute.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/AttributeGroup.php +0 -29
- package/plugins/nikic/php-parser/lib/PhpParser/Node/ComplexType.php +0 -14
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Const_.php +0 -37
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php +0 -41
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php +0 -79
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseOr.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseXor.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Coalesce.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Div.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Minus.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mod.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mul.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Plus.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Pow.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftLeft.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftRight.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignRef.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseOr.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseXor.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanAnd.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Coalesce.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Concat.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Div.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Equal.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Greater.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalAnd.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalOr.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalXor.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Minus.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mod.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mul.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotEqual.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotIdentical.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Plus.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Pow.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftLeft.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftRight.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Spaceship.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php +0 -40
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/CallLike.php +0 -39
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Bool_.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Double.php +0 -17
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Int_.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Object_.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/String_.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Unset_.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php +0 -26
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ClassConstFetch.php +0 -36
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php +0 -79
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ConstFetch.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Error.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php +0 -39
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php +0 -39
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php +0 -35
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Match_.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php +0 -45
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php +0 -41
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafeMethodCall.php +0 -45
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafePropertyFetch.php +0 -35
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php +0 -35
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php +0 -46
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php +0 -36
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php +0 -38
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Throw_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr.php +0 -9
- package/plugins/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php +0 -43
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Identifier.php +0 -75
- package/plugins/nikic/php-parser/lib/PhpParser/Node/IntersectionType.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/MatchArm.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php +0 -50
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php +0 -50
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Name.php +0 -254
- package/plugins/nikic/php-parser/lib/PhpParser/Node/NullableType.php +0 -28
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Param.php +0 -60
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/DNumber.php +0 -77
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php +0 -80
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Dir.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/File.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Function_.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Method.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Trait_.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php +0 -28
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php +0 -157
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar.php +0 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Case_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php +0 -41
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassConst.php +0 -85
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php +0 -109
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassMethod.php +0 -161
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php +0 -137
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Continue_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/DeclareDeclare.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Declare_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Do_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Echo_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/ElseIf_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Else_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/EnumCase.php +0 -37
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Enum_.php +0 -40
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Expression.php +0 -33
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Finally_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/For_.php +0 -43
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Foreach_.php +0 -47
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Function_.php +0 -77
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Global_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Goto_.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/GroupUse.php +0 -39
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/HaltCompiler.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/If_.php +0 -43
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/InlineHTML.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Interface_.php +0 -37
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Namespace_.php +0 -38
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Nop.php +0 -17
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php +0 -91
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/PropertyProperty.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Return_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php +0 -37
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Static_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Switch_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Throw_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php +0 -38
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation.php +0 -13
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Trait_.php +0 -32
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php +0 -38
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Unset_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/UseUse.php +0 -52
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Use_.php +0 -47
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt.php +0 -9
- package/plugins/nikic/php-parser/lib/PhpParser/Node/UnionType.php +0 -28
- package/plugins/nikic/php-parser/lib/PhpParser/Node/VarLikeIdentifier.php +0 -17
- package/plugins/nikic/php-parser/lib/PhpParser/Node/VariadicPlaceholder.php +0 -27
- package/plugins/nikic/php-parser/lib/PhpParser/Node.php +0 -151
- package/plugins/nikic/php-parser/lib/PhpParser/NodeAbstract.php +0 -178
- package/plugins/nikic/php-parser/lib/PhpParser/NodeDumper.php +0 -206
- package/plugins/nikic/php-parser/lib/PhpParser/NodeFinder.php +0 -81
- package/plugins/nikic/php-parser/lib/PhpParser/NodeTraverser.php +0 -291
- package/plugins/nikic/php-parser/lib/PhpParser/NodeTraverserInterface.php +0 -29
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/CloningVisitor.php +0 -20
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/FindingVisitor.php +0 -48
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/FirstFindingVisitor.php +0 -50
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php +0 -260
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/NodeConnectingVisitor.php +0 -52
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/ParentConnectingVisitor.php +0 -41
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor.php +0 -72
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitorAbstract.php +0 -25
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Multiple.php +0 -55
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Php5.php +0 -2682
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Php7.php +0 -2898
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Tokens.php +0 -148
- package/plugins/nikic/php-parser/lib/PhpParser/Parser.php +0 -18
- package/plugins/nikic/php-parser/lib/PhpParser/ParserAbstract.php +0 -1060
- package/plugins/nikic/php-parser/lib/PhpParser/ParserFactory.php +0 -76
- package/plugins/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php +0 -1126
- package/plugins/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php +0 -1576
- package/plugins/rubyastgen/.bundle/config +0 -5
- package/plugins/rubyastgen/Gemfile +0 -12
- package/plugins/rubyastgen/Gemfile.lock +0 -34
- package/plugins/rubyastgen/bundle/bundler/setup.rb +0 -42
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bin/racc +0 -29
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bin/ruby-parse +0 -29
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bin/ruby-rewrite +0 -29
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bin/ruby_ast_gen +0 -29
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/.rspec +0 -3
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/Gemfile +0 -10
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/LICENSE.txt +0 -213
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/README.md +0 -46
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/Rakefile +0 -8
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/bin/console +0 -11
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/bin/setup +0 -6
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/exe/ruby_ast_gen +0 -59
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/lib/ruby_ast_gen/node_handling.rb +0 -232
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/lib/ruby_ast_gen/version.rb +0 -5
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/lib/ruby_ast_gen.rb +0 -140
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/ruby_ast_gen.gemspec +0 -25
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/spec/ruby_ast_gen_spec.rb +0 -175
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/spec/spec_helper.rb +0 -15
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/update_version.rb +0 -36
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/gem.build_complete +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/gem_make.out +0 -18
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/racc/cparse.so +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/LICENSE.MIT +0 -20
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/README.YARD.md +0 -12
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/lib/ast/node.rb +0 -268
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/lib/ast/processor/mixin.rb +0 -288
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/lib/ast/processor.rb +0 -12
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/lib/ast/sexp.rb +0 -30
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/lib/ast.rb +0 -17
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/BSDL +0 -22
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/COPYING +0 -56
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/Gemfile +0 -10
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/README.md +0 -69
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/Rakefile +0 -18
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/bin/console +0 -14
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/bin/setup +0 -8
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/lib/ostruct.rb +0 -489
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/ostruct.gemspec +0 -24
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/LICENSE.txt +0 -26
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/bin/ruby-parse +0 -7
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/bin/ruby-rewrite +0 -7
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/gauntlet_parser.rb +0 -123
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/all.rb +0 -17
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ast/node.rb +0 -40
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ast/processor.rb +0 -293
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/base.rb +0 -294
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/builders/default.rb +0 -2351
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/clobbering_error.rb +0 -13
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/color.rb +0 -32
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/context.rb +0 -51
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/current.rb +0 -146
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/current_arg_stack.rb +0 -46
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/deprecation.rb +0 -13
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/diagnostic/engine.rb +0 -104
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/diagnostic.rb +0 -163
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer/dedenter.rb +0 -88
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer/explanation.rb +0 -55
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer/literal.rb +0 -284
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer/stack_state.rb +0 -49
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer-F0.rb +0 -12931
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer-F1.rb +0 -14884
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer-strings.rb +0 -5433
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/macruby.rb +0 -9634
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/max_numparam_stack.rb +0 -56
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/messages.rb +0 -125
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/meta.rb +0 -48
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/rewriter.rb +0 -105
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby18.rb +0 -9272
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby19.rb +0 -9558
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby20.rb +0 -10229
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby21.rb +0 -10203
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby22.rb +0 -10302
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby23.rb +0 -10322
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby24.rb +0 -10454
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby25.rb +0 -10374
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby26.rb +0 -10352
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby27.rb +0 -11948
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby30.rb +0 -12244
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby31.rb +0 -12717
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby32.rb +0 -12705
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby33.rb +0 -12590
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby34.rb +0 -12597
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/rubymotion.rb +0 -9515
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/runner/ruby_parse.rb +0 -157
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/runner/ruby_rewrite.rb +0 -101
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/runner.rb +0 -299
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/buffer.rb +0 -369
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/comment/associator.rb +0 -233
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/comment.rb +0 -134
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/collection.rb +0 -18
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/condition.rb +0 -21
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/constant.rb +0 -32
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/definition.rb +0 -23
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/for.rb +0 -19
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/heredoc.rb +0 -19
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/index.rb +0 -33
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/keyword.rb +0 -20
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/method_definition.rb +0 -25
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/objc_kwarg.rb +0 -19
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/operator.rb +0 -17
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/rescue_body.rb +0 -21
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/send.rb +0 -36
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/ternary.rb +0 -18
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/variable.rb +0 -31
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map.rb +0 -186
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/range.rb +0 -326
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/rewriter/action.rb +0 -44
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/rewriter.rb +0 -513
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/tree_rewriter/action.rb +0 -243
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/tree_rewriter.rb +0 -431
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/static_environment.rb +0 -134
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/syntax_error.rb +0 -21
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/tree_rewriter.rb +0 -133
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/unknown_encoding_in_magic_comment_error.rb +0 -15
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/variables_stack.rb +0 -36
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/version.rb +0 -5
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser.rb +0 -91
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/parser.gemspec +0 -43
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/BSDL +0 -22
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/COPYING +0 -56
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ChangeLog +0 -846
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/README.ja.rdoc +0 -58
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/README.rdoc +0 -60
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/TODO +0 -5
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/bin/racc +0 -320
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/en/grammar.en.rdoc +0 -218
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/en/grammar2.en.rdoc +0 -219
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/ja/command.ja.html +0 -99
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/ja/debug.ja.rdoc +0 -36
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/ja/grammar.ja.rdoc +0 -348
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/ja/index.ja.html +0 -10
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/ja/parser.ja.rdoc +0 -125
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/ja/usage.ja.html +0 -414
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse/Makefile +0 -273
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse/cparse.c +0 -840
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse/extconf.rb +0 -8
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/compat.rb +0 -33
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/cparse.so +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/debugflags.rb +0 -60
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/exception.rb +0 -16
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/grammar.rb +0 -1191
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/grammarfileparser.rb +0 -667
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/info.rb +0 -18
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/iset.rb +0 -92
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/logfilegenerator.rb +0 -212
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/parser-text.rb +0 -644
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/parser.rb +0 -630
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/parserfilegenerator.rb +0 -473
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/sourcetext.rb +0 -35
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/state.rb +0 -976
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/statetransitiontable.rb +0 -311
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/static.rb +0 -5
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc.rb +0 -6
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/ast-2.4.3.gemspec +0 -29
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/ostruct-0.6.1.gemspec +0 -21
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/parser-3.3.8.0.gemspec +0 -37
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/racc-1.8.1.gemspec +0 -28
- package/plugins/rubyastgen/setup.ps1 +0 -4
- package/plugins/rubyastgen/setup.sh +0 -6
- package/utils.mjs +0 -139
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
<?php declare(strict_types=1);
|
|
2
|
-
|
|
3
|
-
namespace PhpParser;
|
|
4
|
-
|
|
5
|
-
use PhpParser\Node\Name;
|
|
6
|
-
use PhpParser\Node\Name\FullyQualified;
|
|
7
|
-
use PhpParser\Node\Stmt;
|
|
8
|
-
|
|
9
|
-
class NameContext
|
|
10
|
-
{
|
|
11
|
-
/** @var null|Name Current namespace */
|
|
12
|
-
protected $namespace;
|
|
13
|
-
|
|
14
|
-
/** @var Name[][] Map of format [aliasType => [aliasName => originalName]] */
|
|
15
|
-
protected $aliases = [];
|
|
16
|
-
|
|
17
|
-
/** @var Name[][] Same as $aliases but preserving original case */
|
|
18
|
-
protected $origAliases = [];
|
|
19
|
-
|
|
20
|
-
/** @var ErrorHandler Error handler */
|
|
21
|
-
protected $errorHandler;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Create a name context.
|
|
25
|
-
*
|
|
26
|
-
* @param ErrorHandler $errorHandler Error handling used to report errors
|
|
27
|
-
*/
|
|
28
|
-
public function __construct(ErrorHandler $errorHandler) {
|
|
29
|
-
$this->errorHandler = $errorHandler;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Start a new namespace.
|
|
34
|
-
*
|
|
35
|
-
* This also resets the alias table.
|
|
36
|
-
*
|
|
37
|
-
* @param Name|null $namespace Null is the global namespace
|
|
38
|
-
*/
|
|
39
|
-
public function startNamespace(Name $namespace = null) {
|
|
40
|
-
$this->namespace = $namespace;
|
|
41
|
-
$this->origAliases = $this->aliases = [
|
|
42
|
-
Stmt\Use_::TYPE_NORMAL => [],
|
|
43
|
-
Stmt\Use_::TYPE_FUNCTION => [],
|
|
44
|
-
Stmt\Use_::TYPE_CONSTANT => [],
|
|
45
|
-
];
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Add an alias / import.
|
|
50
|
-
*
|
|
51
|
-
* @param Name $name Original name
|
|
52
|
-
* @param string $aliasName Aliased name
|
|
53
|
-
* @param int $type One of Stmt\Use_::TYPE_*
|
|
54
|
-
* @param array $errorAttrs Attributes to use to report an error
|
|
55
|
-
*/
|
|
56
|
-
public function addAlias(Name $name, string $aliasName, int $type, array $errorAttrs = []) {
|
|
57
|
-
// Constant names are case sensitive, everything else case insensitive
|
|
58
|
-
if ($type === Stmt\Use_::TYPE_CONSTANT) {
|
|
59
|
-
$aliasLookupName = $aliasName;
|
|
60
|
-
} else {
|
|
61
|
-
$aliasLookupName = strtolower($aliasName);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if (isset($this->aliases[$type][$aliasLookupName])) {
|
|
65
|
-
$typeStringMap = [
|
|
66
|
-
Stmt\Use_::TYPE_NORMAL => '',
|
|
67
|
-
Stmt\Use_::TYPE_FUNCTION => 'function ',
|
|
68
|
-
Stmt\Use_::TYPE_CONSTANT => 'const ',
|
|
69
|
-
];
|
|
70
|
-
|
|
71
|
-
$this->errorHandler->handleError(new Error(
|
|
72
|
-
sprintf(
|
|
73
|
-
'Cannot use %s%s as %s because the name is already in use',
|
|
74
|
-
$typeStringMap[$type], $name, $aliasName
|
|
75
|
-
),
|
|
76
|
-
$errorAttrs
|
|
77
|
-
));
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
$this->aliases[$type][$aliasLookupName] = $name;
|
|
82
|
-
$this->origAliases[$type][$aliasName] = $name;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Get current namespace.
|
|
87
|
-
*
|
|
88
|
-
* @return null|Name Namespace (or null if global namespace)
|
|
89
|
-
*/
|
|
90
|
-
public function getNamespace() {
|
|
91
|
-
return $this->namespace;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Get resolved name.
|
|
96
|
-
*
|
|
97
|
-
* @param Name $name Name to resolve
|
|
98
|
-
* @param int $type One of Stmt\Use_::TYPE_{FUNCTION|CONSTANT}
|
|
99
|
-
*
|
|
100
|
-
* @return null|Name Resolved name, or null if static resolution is not possible
|
|
101
|
-
*/
|
|
102
|
-
public function getResolvedName(Name $name, int $type) {
|
|
103
|
-
// don't resolve special class names
|
|
104
|
-
if ($type === Stmt\Use_::TYPE_NORMAL && $name->isSpecialClassName()) {
|
|
105
|
-
if (!$name->isUnqualified()) {
|
|
106
|
-
$this->errorHandler->handleError(new Error(
|
|
107
|
-
sprintf("'\\%s' is an invalid class name", $name->toString()),
|
|
108
|
-
$name->getAttributes()
|
|
109
|
-
));
|
|
110
|
-
}
|
|
111
|
-
return $name;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// fully qualified names are already resolved
|
|
115
|
-
if ($name->isFullyQualified()) {
|
|
116
|
-
return $name;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// Try to resolve aliases
|
|
120
|
-
if (null !== $resolvedName = $this->resolveAlias($name, $type)) {
|
|
121
|
-
return $resolvedName;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
if ($type !== Stmt\Use_::TYPE_NORMAL && $name->isUnqualified()) {
|
|
125
|
-
if (null === $this->namespace) {
|
|
126
|
-
// outside of a namespace unaliased unqualified is same as fully qualified
|
|
127
|
-
return new FullyQualified($name, $name->getAttributes());
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// Cannot resolve statically
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// if no alias exists prepend current namespace
|
|
135
|
-
return FullyQualified::concat($this->namespace, $name, $name->getAttributes());
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Get resolved class name.
|
|
140
|
-
*
|
|
141
|
-
* @param Name $name Class ame to resolve
|
|
142
|
-
*
|
|
143
|
-
* @return Name Resolved name
|
|
144
|
-
*/
|
|
145
|
-
public function getResolvedClassName(Name $name) : Name {
|
|
146
|
-
return $this->getResolvedName($name, Stmt\Use_::TYPE_NORMAL);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Get possible ways of writing a fully qualified name (e.g., by making use of aliases).
|
|
151
|
-
*
|
|
152
|
-
* @param string $name Fully-qualified name (without leading namespace separator)
|
|
153
|
-
* @param int $type One of Stmt\Use_::TYPE_*
|
|
154
|
-
*
|
|
155
|
-
* @return Name[] Possible representations of the name
|
|
156
|
-
*/
|
|
157
|
-
public function getPossibleNames(string $name, int $type) : array {
|
|
158
|
-
$lcName = strtolower($name);
|
|
159
|
-
|
|
160
|
-
if ($type === Stmt\Use_::TYPE_NORMAL) {
|
|
161
|
-
// self, parent and static must always be unqualified
|
|
162
|
-
if ($lcName === "self" || $lcName === "parent" || $lcName === "static") {
|
|
163
|
-
return [new Name($name)];
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
// Collect possible ways to write this name, starting with the fully-qualified name
|
|
168
|
-
$possibleNames = [new FullyQualified($name)];
|
|
169
|
-
|
|
170
|
-
if (null !== $nsRelativeName = $this->getNamespaceRelativeName($name, $lcName, $type)) {
|
|
171
|
-
// Make sure there is no alias that makes the normally namespace-relative name
|
|
172
|
-
// into something else
|
|
173
|
-
if (null === $this->resolveAlias($nsRelativeName, $type)) {
|
|
174
|
-
$possibleNames[] = $nsRelativeName;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// Check for relevant namespace use statements
|
|
179
|
-
foreach ($this->origAliases[Stmt\Use_::TYPE_NORMAL] as $alias => $orig) {
|
|
180
|
-
$lcOrig = $orig->toLowerString();
|
|
181
|
-
if (0 === strpos($lcName, $lcOrig . '\\')) {
|
|
182
|
-
$possibleNames[] = new Name($alias . substr($name, strlen($lcOrig)));
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
// Check for relevant type-specific use statements
|
|
187
|
-
foreach ($this->origAliases[$type] as $alias => $orig) {
|
|
188
|
-
if ($type === Stmt\Use_::TYPE_CONSTANT) {
|
|
189
|
-
// Constants are are complicated-sensitive
|
|
190
|
-
$normalizedOrig = $this->normalizeConstName($orig->toString());
|
|
191
|
-
if ($normalizedOrig === $this->normalizeConstName($name)) {
|
|
192
|
-
$possibleNames[] = new Name($alias);
|
|
193
|
-
}
|
|
194
|
-
} else {
|
|
195
|
-
// Everything else is case-insensitive
|
|
196
|
-
if ($orig->toLowerString() === $lcName) {
|
|
197
|
-
$possibleNames[] = new Name($alias);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
return $possibleNames;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Get shortest representation of this fully-qualified name.
|
|
207
|
-
*
|
|
208
|
-
* @param string $name Fully-qualified name (without leading namespace separator)
|
|
209
|
-
* @param int $type One of Stmt\Use_::TYPE_*
|
|
210
|
-
*
|
|
211
|
-
* @return Name Shortest representation
|
|
212
|
-
*/
|
|
213
|
-
public function getShortName(string $name, int $type) : Name {
|
|
214
|
-
$possibleNames = $this->getPossibleNames($name, $type);
|
|
215
|
-
|
|
216
|
-
// Find shortest name
|
|
217
|
-
$shortestName = null;
|
|
218
|
-
$shortestLength = \INF;
|
|
219
|
-
foreach ($possibleNames as $possibleName) {
|
|
220
|
-
$length = strlen($possibleName->toCodeString());
|
|
221
|
-
if ($length < $shortestLength) {
|
|
222
|
-
$shortestName = $possibleName;
|
|
223
|
-
$shortestLength = $length;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
return $shortestName;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
private function resolveAlias(Name $name, $type) {
|
|
231
|
-
$firstPart = $name->getFirst();
|
|
232
|
-
|
|
233
|
-
if ($name->isQualified()) {
|
|
234
|
-
// resolve aliases for qualified names, always against class alias table
|
|
235
|
-
$checkName = strtolower($firstPart);
|
|
236
|
-
if (isset($this->aliases[Stmt\Use_::TYPE_NORMAL][$checkName])) {
|
|
237
|
-
$alias = $this->aliases[Stmt\Use_::TYPE_NORMAL][$checkName];
|
|
238
|
-
return FullyQualified::concat($alias, $name->slice(1), $name->getAttributes());
|
|
239
|
-
}
|
|
240
|
-
} elseif ($name->isUnqualified()) {
|
|
241
|
-
// constant aliases are case-sensitive, function aliases case-insensitive
|
|
242
|
-
$checkName = $type === Stmt\Use_::TYPE_CONSTANT ? $firstPart : strtolower($firstPart);
|
|
243
|
-
if (isset($this->aliases[$type][$checkName])) {
|
|
244
|
-
// resolve unqualified aliases
|
|
245
|
-
return new FullyQualified($this->aliases[$type][$checkName], $name->getAttributes());
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// No applicable aliases
|
|
250
|
-
return null;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
private function getNamespaceRelativeName(string $name, string $lcName, int $type) {
|
|
254
|
-
if (null === $this->namespace) {
|
|
255
|
-
return new Name($name);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
if ($type === Stmt\Use_::TYPE_CONSTANT) {
|
|
259
|
-
// The constants true/false/null always resolve to the global symbols, even inside a
|
|
260
|
-
// namespace, so they may be used without qualification
|
|
261
|
-
if ($lcName === "true" || $lcName === "false" || $lcName === "null") {
|
|
262
|
-
return new Name($name);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
$namespacePrefix = strtolower($this->namespace . '\\');
|
|
267
|
-
if (0 === strpos($lcName, $namespacePrefix)) {
|
|
268
|
-
return new Name(substr($name, strlen($namespacePrefix)));
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
return null;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
private function normalizeConstName(string $name) {
|
|
275
|
-
$nsSep = strrpos($name, '\\');
|
|
276
|
-
if (false === $nsSep) {
|
|
277
|
-
return $name;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
// Constants have case-insensitive namespace and case-sensitive short-name
|
|
281
|
-
$ns = substr($name, 0, $nsSep);
|
|
282
|
-
$shortName = substr($name, $nsSep + 1);
|
|
283
|
-
return strtolower($ns) . '\\' . $shortName;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<?php declare(strict_types=1);
|
|
2
|
-
|
|
3
|
-
namespace PhpParser\Node;
|
|
4
|
-
|
|
5
|
-
use PhpParser\Node\VariadicPlaceholder;
|
|
6
|
-
use PhpParser\NodeAbstract;
|
|
7
|
-
|
|
8
|
-
class Arg extends NodeAbstract
|
|
9
|
-
{
|
|
10
|
-
/** @var Identifier|null Parameter name (for named parameters) */
|
|
11
|
-
public $name;
|
|
12
|
-
/** @var Expr Value to pass */
|
|
13
|
-
public $value;
|
|
14
|
-
/** @var bool Whether to pass by ref */
|
|
15
|
-
public $byRef;
|
|
16
|
-
/** @var bool Whether to unpack the argument */
|
|
17
|
-
public $unpack;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Constructs a function call argument node.
|
|
21
|
-
*
|
|
22
|
-
* @param Expr $value Value to pass
|
|
23
|
-
* @param bool $byRef Whether to pass by ref
|
|
24
|
-
* @param bool $unpack Whether to unpack the argument
|
|
25
|
-
* @param array $attributes Additional attributes
|
|
26
|
-
* @param Identifier|null $name Parameter name (for named parameters)
|
|
27
|
-
*/
|
|
28
|
-
public function __construct(
|
|
29
|
-
Expr $value, bool $byRef = false, bool $unpack = false, array $attributes = [],
|
|
30
|
-
Identifier $name = null
|
|
31
|
-
) {
|
|
32
|
-
$this->attributes = $attributes;
|
|
33
|
-
$this->name = $name;
|
|
34
|
-
$this->value = $value;
|
|
35
|
-
$this->byRef = $byRef;
|
|
36
|
-
$this->unpack = $unpack;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
public function getSubNodeNames() : array {
|
|
40
|
-
return ['name', 'value', 'byRef', 'unpack'];
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
public function getType() : string {
|
|
44
|
-
return 'Arg';
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<?php declare(strict_types=1);
|
|
2
|
-
|
|
3
|
-
namespace PhpParser\Node;
|
|
4
|
-
|
|
5
|
-
use PhpParser\Node;
|
|
6
|
-
use PhpParser\NodeAbstract;
|
|
7
|
-
|
|
8
|
-
class Attribute extends NodeAbstract
|
|
9
|
-
{
|
|
10
|
-
/** @var Name Attribute name */
|
|
11
|
-
public $name;
|
|
12
|
-
|
|
13
|
-
/** @var Arg[] Attribute arguments */
|
|
14
|
-
public $args;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @param Node\Name $name Attribute name
|
|
18
|
-
* @param Arg[] $args Attribute arguments
|
|
19
|
-
* @param array $attributes Additional node attributes
|
|
20
|
-
*/
|
|
21
|
-
public function __construct(Name $name, array $args = [], array $attributes = []) {
|
|
22
|
-
$this->attributes = $attributes;
|
|
23
|
-
$this->name = $name;
|
|
24
|
-
$this->args = $args;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public function getSubNodeNames() : array {
|
|
28
|
-
return ['name', 'args'];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
public function getType() : string {
|
|
32
|
-
return 'Attribute';
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<?php declare(strict_types=1);
|
|
2
|
-
|
|
3
|
-
namespace PhpParser\Node;
|
|
4
|
-
|
|
5
|
-
use PhpParser\Node;
|
|
6
|
-
use PhpParser\NodeAbstract;
|
|
7
|
-
|
|
8
|
-
class AttributeGroup extends NodeAbstract
|
|
9
|
-
{
|
|
10
|
-
/** @var Attribute[] Attributes */
|
|
11
|
-
public $attrs;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @param Attribute[] $attrs PHP attributes
|
|
15
|
-
* @param array $attributes Additional node attributes
|
|
16
|
-
*/
|
|
17
|
-
public function __construct(array $attrs, array $attributes = []) {
|
|
18
|
-
$this->attributes = $attributes;
|
|
19
|
-
$this->attrs = $attrs;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public function getSubNodeNames() : array {
|
|
23
|
-
return ['attrs'];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
public function getType() : string {
|
|
27
|
-
return 'AttributeGroup';
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?php declare(strict_types=1);
|
|
2
|
-
|
|
3
|
-
namespace PhpParser\Node;
|
|
4
|
-
|
|
5
|
-
use PhpParser\NodeAbstract;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* This is a base class for complex types, including nullable types and union types.
|
|
9
|
-
*
|
|
10
|
-
* It does not provide any shared behavior and exists only for type-checking purposes.
|
|
11
|
-
*/
|
|
12
|
-
abstract class ComplexType extends NodeAbstract
|
|
13
|
-
{
|
|
14
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<?php declare(strict_types=1);
|
|
2
|
-
|
|
3
|
-
namespace PhpParser\Node;
|
|
4
|
-
|
|
5
|
-
use PhpParser\NodeAbstract;
|
|
6
|
-
|
|
7
|
-
class Const_ extends NodeAbstract
|
|
8
|
-
{
|
|
9
|
-
/** @var Identifier Name */
|
|
10
|
-
public $name;
|
|
11
|
-
/** @var Expr Value */
|
|
12
|
-
public $value;
|
|
13
|
-
|
|
14
|
-
/** @var Name|null Namespaced name (if using NameResolver) */
|
|
15
|
-
public $namespacedName;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Constructs a const node for use in class const and const statements.
|
|
19
|
-
*
|
|
20
|
-
* @param string|Identifier $name Name
|
|
21
|
-
* @param Expr $value Value
|
|
22
|
-
* @param array $attributes Additional attributes
|
|
23
|
-
*/
|
|
24
|
-
public function __construct($name, Expr $value, array $attributes = []) {
|
|
25
|
-
$this->attributes = $attributes;
|
|
26
|
-
$this->name = \is_string($name) ? new Identifier($name) : $name;
|
|
27
|
-
$this->value = $value;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
public function getSubNodeNames() : array {
|
|
31
|
-
return ['name', 'value'];
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
public function getType() : string {
|
|
35
|
-
return 'Const';
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<?php declare(strict_types=1);
|
|
2
|
-
|
|
3
|
-
namespace PhpParser\Node\Expr;
|
|
4
|
-
|
|
5
|
-
use PhpParser\Node\Expr;
|
|
6
|
-
|
|
7
|
-
class ArrayDimFetch extends Expr
|
|
8
|
-
{
|
|
9
|
-
/** @var Expr Variable */
|
|
10
|
-
public $var;
|
|
11
|
-
/** @var null|Expr Array index / dim */
|
|
12
|
-
public $dim;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Constructs an array index fetch node.
|
|
16
|
-
*
|
|
17
|
-
* @param Expr $var Variable
|
|
18
|
-
* @param null|Expr $dim Array index / dim
|
|
19
|
-
* @param array $attributes Additional attributes
|
|
20
|
-
*/
|
|
21
|
-
public function __construct(Expr $var, Expr $dim = null, array $attributes = []) {
|
|
22
|
-
$this->attributes = $attributes;
|
|
23
|
-
$this->var = $var;
|
|
24
|
-
$this->dim = $dim;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public function getSubNodeNames() : array {
|
|
28
|
-
return ['var', 'dim'];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
public function getType() : string {
|
|
32
|
-
return 'Expr_ArrayDimFetch';
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<?php declare(strict_types=1);
|
|
2
|
-
|
|
3
|
-
namespace PhpParser\Node\Expr;
|
|
4
|
-
|
|
5
|
-
use PhpParser\Node\Expr;
|
|
6
|
-
|
|
7
|
-
class ArrayItem extends Expr
|
|
8
|
-
{
|
|
9
|
-
/** @var null|Expr Key */
|
|
10
|
-
public $key;
|
|
11
|
-
/** @var Expr Value */
|
|
12
|
-
public $value;
|
|
13
|
-
/** @var bool Whether to assign by reference */
|
|
14
|
-
public $byRef;
|
|
15
|
-
/** @var bool Whether to unpack the argument */
|
|
16
|
-
public $unpack;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Constructs an array item node.
|
|
20
|
-
*
|
|
21
|
-
* @param Expr $value Value
|
|
22
|
-
* @param null|Expr $key Key
|
|
23
|
-
* @param bool $byRef Whether to assign by reference
|
|
24
|
-
* @param array $attributes Additional attributes
|
|
25
|
-
*/
|
|
26
|
-
public function __construct(Expr $value, Expr $key = null, bool $byRef = false, array $attributes = [], bool $unpack = false) {
|
|
27
|
-
$this->attributes = $attributes;
|
|
28
|
-
$this->key = $key;
|
|
29
|
-
$this->value = $value;
|
|
30
|
-
$this->byRef = $byRef;
|
|
31
|
-
$this->unpack = $unpack;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
public function getSubNodeNames() : array {
|
|
35
|
-
return ['key', 'value', 'byRef', 'unpack'];
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
public function getType() : string {
|
|
39
|
-
return 'Expr_ArrayItem';
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<?php declare(strict_types=1);
|
|
2
|
-
|
|
3
|
-
namespace PhpParser\Node\Expr;
|
|
4
|
-
|
|
5
|
-
use PhpParser\Node\Expr;
|
|
6
|
-
|
|
7
|
-
class Array_ extends Expr
|
|
8
|
-
{
|
|
9
|
-
// For use in "kind" attribute
|
|
10
|
-
const KIND_LONG = 1; // array() syntax
|
|
11
|
-
const KIND_SHORT = 2; // [] syntax
|
|
12
|
-
|
|
13
|
-
/** @var (ArrayItem|null)[] Items */
|
|
14
|
-
public $items;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Constructs an array node.
|
|
18
|
-
*
|
|
19
|
-
* @param (ArrayItem|null)[] $items Items of the array
|
|
20
|
-
* @param array $attributes Additional attributes
|
|
21
|
-
*/
|
|
22
|
-
public function __construct(array $items = [], array $attributes = []) {
|
|
23
|
-
$this->attributes = $attributes;
|
|
24
|
-
$this->items = $items;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public function getSubNodeNames() : array {
|
|
28
|
-
return ['items'];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
public function getType() : string {
|
|
32
|
-
return 'Expr_Array';
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
<?php declare(strict_types=1);
|
|
2
|
-
|
|
3
|
-
namespace PhpParser\Node\Expr;
|
|
4
|
-
|
|
5
|
-
use PhpParser\Node;
|
|
6
|
-
use PhpParser\Node\Expr;
|
|
7
|
-
use PhpParser\Node\FunctionLike;
|
|
8
|
-
|
|
9
|
-
class ArrowFunction extends Expr implements FunctionLike
|
|
10
|
-
{
|
|
11
|
-
/** @var bool */
|
|
12
|
-
public $static;
|
|
13
|
-
|
|
14
|
-
/** @var bool */
|
|
15
|
-
public $byRef;
|
|
16
|
-
|
|
17
|
-
/** @var Node\Param[] */
|
|
18
|
-
public $params = [];
|
|
19
|
-
|
|
20
|
-
/** @var null|Node\Identifier|Node\Name|Node\ComplexType */
|
|
21
|
-
public $returnType;
|
|
22
|
-
|
|
23
|
-
/** @var Expr */
|
|
24
|
-
public $expr;
|
|
25
|
-
/** @var Node\AttributeGroup[] */
|
|
26
|
-
public $attrGroups;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @param array $subNodes Array of the following optional subnodes:
|
|
30
|
-
* 'static' => false : Whether the closure is static
|
|
31
|
-
* 'byRef' => false : Whether to return by reference
|
|
32
|
-
* 'params' => array() : Parameters
|
|
33
|
-
* 'returnType' => null : Return type
|
|
34
|
-
* 'expr' => Expr : Expression body
|
|
35
|
-
* 'attrGroups' => array() : PHP attribute groups
|
|
36
|
-
* @param array $attributes Additional attributes
|
|
37
|
-
*/
|
|
38
|
-
public function __construct(array $subNodes = [], array $attributes = []) {
|
|
39
|
-
$this->attributes = $attributes;
|
|
40
|
-
$this->static = $subNodes['static'] ?? false;
|
|
41
|
-
$this->byRef = $subNodes['byRef'] ?? false;
|
|
42
|
-
$this->params = $subNodes['params'] ?? [];
|
|
43
|
-
$returnType = $subNodes['returnType'] ?? null;
|
|
44
|
-
$this->returnType = \is_string($returnType) ? new Node\Identifier($returnType) : $returnType;
|
|
45
|
-
$this->expr = $subNodes['expr'];
|
|
46
|
-
$this->attrGroups = $subNodes['attrGroups'] ?? [];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
public function getSubNodeNames() : array {
|
|
50
|
-
return ['attrGroups', 'static', 'byRef', 'params', 'returnType', 'expr'];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
public function returnsByRef() : bool {
|
|
54
|
-
return $this->byRef;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
public function getParams() : array {
|
|
58
|
-
return $this->params;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
public function getReturnType() {
|
|
62
|
-
return $this->returnType;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
public function getAttrGroups() : array {
|
|
66
|
-
return $this->attrGroups;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @return Node\Stmt\Return_[]
|
|
71
|
-
*/
|
|
72
|
-
public function getStmts() : array {
|
|
73
|
-
return [new Node\Stmt\Return_($this->expr)];
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
public function getType() : string {
|
|
77
|
-
return 'Expr_ArrowFunction';
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<?php declare(strict_types=1);
|
|
2
|
-
|
|
3
|
-
namespace PhpParser\Node\Expr;
|
|
4
|
-
|
|
5
|
-
use PhpParser\Node\Expr;
|
|
6
|
-
|
|
7
|
-
class Assign extends Expr
|
|
8
|
-
{
|
|
9
|
-
/** @var Expr Variable */
|
|
10
|
-
public $var;
|
|
11
|
-
/** @var Expr Expression */
|
|
12
|
-
public $expr;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Constructs an assignment node.
|
|
16
|
-
*
|
|
17
|
-
* @param Expr $var Variable
|
|
18
|
-
* @param Expr $expr Expression
|
|
19
|
-
* @param array $attributes Additional attributes
|
|
20
|
-
*/
|
|
21
|
-
public function __construct(Expr $var, Expr $expr, array $attributes = []) {
|
|
22
|
-
$this->attributes = $attributes;
|
|
23
|
-
$this->var = $var;
|
|
24
|
-
$this->expr = $expr;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public function getSubNodeNames() : array {
|
|
28
|
-
return ['var', 'expr'];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
public function getType() : string {
|
|
32
|
-
return 'Expr_Assign';
|
|
33
|
-
}
|
|
34
|
-
}
|