@@ -2,6 +2,12 @@ import python
22
33abstract class XMLBytecodeExpr extends XMLElement { }
44
5+ class XMLBytecodeConst extends XMLBytecodeExpr {
6+ XMLBytecodeConst ( ) { this .hasName ( "BytecodeConst" ) }
7+
8+ string get_value_data_raw ( ) { result = this .getAChild ( "value" ) .getTextValue ( ) }
9+ }
10+
511class XMLBytecodeVariableName extends XMLBytecodeExpr {
612 XMLBytecodeVariableName ( ) { this .hasName ( "BytecodeVariableName" ) }
713
@@ -16,6 +22,30 @@ class XMLBytecodeAttribute extends XMLBytecodeExpr {
1622 XMLBytecodeExpr get_object_data ( ) { result .getParent ( ) = this .getAChild ( "object" ) }
1723}
1824
25+ class XMLBytecodeSubscript extends XMLBytecodeExpr {
26+ XMLBytecodeSubscript ( ) { this .hasName ( "BytecodeSubscript" ) }
27+
28+ XMLBytecodeExpr get_key_data ( ) { result .getParent ( ) = this .getAChild ( "key" ) }
29+
30+ XMLBytecodeExpr get_object_data ( ) { result .getParent ( ) = this .getAChild ( "object" ) }
31+ }
32+
33+ class XMLBytecodeTuple extends XMLBytecodeExpr {
34+ XMLBytecodeTuple ( ) { this .hasName ( "BytecodeTuple" ) }
35+
36+ XMLBytecodeExpr get_elements_data ( int index ) {
37+ result = this .getAChild ( "elements" ) .getChild ( index )
38+ }
39+ }
40+
41+ class XMLBytecodeList extends XMLBytecodeExpr {
42+ XMLBytecodeList ( ) { this .hasName ( "BytecodeList" ) }
43+
44+ XMLBytecodeExpr get_elements_data ( int index ) {
45+ result = this .getAChild ( "elements" ) .getChild ( index )
46+ }
47+ }
48+
1949class XMLBytecodeCall extends XMLBytecodeExpr {
2050 XMLBytecodeCall ( ) { this .hasName ( "BytecodeCall" ) }
2151
@@ -24,4 +54,20 @@ class XMLBytecodeCall extends XMLBytecodeExpr {
2454
2555class XMLBytecodeUnknown extends XMLBytecodeExpr {
2656 XMLBytecodeUnknown ( ) { this .hasName ( "BytecodeUnknown" ) }
57+
58+ string get_opname_data ( ) { result = this .getAChild ( "opname" ) .getTextValue ( ) }
59+ }
60+
61+ class XMLBytecodeMakeFunction extends XMLBytecodeExpr {
62+ XMLBytecodeMakeFunction ( ) { this .hasName ( "BytecodeMakeFunction" ) }
63+
64+ XMLBytecodeExpr get_qualified_name_data ( ) {
65+ result .getParent ( ) = this .getAChild ( "qualified_name" )
66+ }
67+ }
68+
69+ class XMLSomethingInvolvingScaryBytecodeJump extends XMLBytecodeExpr {
70+ XMLSomethingInvolvingScaryBytecodeJump ( ) { this .hasName ( "SomethingInvolvingScaryBytecodeJump" ) }
71+
72+ string get_opname_data ( ) { result = this .getAChild ( "opname" ) .getTextValue ( ) }
2773}
0 commit comments