@@ -32,320 +32,6 @@ Ast::~Ast()
3232{
3333}
3434
35- CodeAst::CodeAst ()
36- : Ast( 0 , Ast::CodeAst )
37- {
38- }
39- FunctionDefinitionAst::FunctionDefinitionAst ( Ast* parent )
40- : StatementAst( parent, Ast::FunctionDefinitionAst ), functionName( 0 )
41- {
42- }
43- DecoratorAst::DecoratorAst ( Ast* parent )
44- : Ast( parent, Ast::DecoratorAst )
45- {
46- }
47- ArgumentAst::ArgumentAst ( Ast* parent )
48- : Ast( parent, Ast::ArgumentAst ), argumentExpression( 0 ), keywordName( 0 )
49- {
50- }
51- ParameterAst::ParameterAst ( Ast* parent, Ast::AstType type )
52- : Ast( parent, type )
53- {
54- }
55- StatementAst::StatementAst ( Ast* parent, Ast::AstType type )
56- : Ast( parent, type )
57- {
58- }
59- IfAst::IfAst ( Ast* parent )
60- : StatementAst( parent, Ast::IfAst ), ifCondition( 0 )
61- {
62- }
63- WhileAst::WhileAst ( Ast* parent )
64- : StatementAst( parent, Ast::WhileAst ), condition( 0 )
65- {
66- }
67- ForAst::ForAst ( Ast* parent )
68- : StatementAst( parent, Ast::ForAst )
69- {
70- }
71- ClassDefinitionAst::ClassDefinitionAst ( Ast* parent )
72- : StatementAst( parent, Ast::ClassDefinitionAst ), className( 0 )
73- {
74- }
75- TryAst::TryAst ( Ast* parent )
76- : StatementAst( parent, Ast::TryAst )
77- {
78- }
79- ExceptAst::ExceptAst ( Ast* parent )
80- : Ast( parent, Ast::ExceptAst ), exceptionDeclaration( 0 ), exceptionValue( 0 )
81- {
82- }
83- WithAst::WithAst ( Ast* parent )
84- : StatementAst( parent, Ast::WithAst ), context( 0 ), name( 0 )
85- {
86- }
87- ExecAst::ExecAst ( Ast* parent )
88- : StatementAst( parent, Ast::ExecAst ), executable( 0 ), globalsAndLocals( 0 ), localsOnly( 0 )
89- {
90- }
91- GlobalAst::GlobalAst ( Ast* parent )
92- : StatementAst( parent, Ast::GlobalAst )
93- {
94- }
95- ImportAst::ImportAst ( Ast* parent, Ast::AstType type )
96- : StatementAst( parent, type )
97- {
98- }
99- PlainImportAst::PlainImportAst ( Ast* parent )
100- : ImportAst( parent, Ast::PlainImportAst )
101- {
102- }
103- StarImportAst::StarImportAst ( Ast* parent )
104- : ImportAst( parent, Ast::StarImportAst )
105- {
106- }
107- FromImportAst::FromImportAst ( Ast* parent )
108- : ImportAst( parent, Ast::FromImportAst )
109- {
110- }
111- RaiseAst::RaiseAst ( Ast* parent )
112- : StatementAst( parent, Ast::RaiseAst ), exceptionType( 0 ), exceptionValue( 0 ), traceback( 0 )
113- {
114- }
115- PrintAst::PrintAst ( Ast* parent )
116- : StatementAst( parent, Ast::PrintAst ), outfile( 0 )
117- {
118- }
119-
120- ReturnAst::ReturnAst ( Ast* parent )
121- : StatementAst( parent, Ast::ReturnAst )
122- {
123- }
124- YieldAst::YieldAst ( Ast* parent )
125- : StatementAst( parent, Ast::YieldAst )
126- {
127- }
128- DelAst::DelAst ( Ast* parent )
129- : StatementAst( parent, Ast::DelAst )
130- {
131- }
132- AssertAst::AssertAst ( Ast* parent )
133- : StatementAst( parent, Ast::AssertAst ), assertTest( 0 ), exceptionValue( 0 )
134- {
135- }
136- ExpressionStatementAst::ExpressionStatementAst ( Ast* parent )
137- : StatementAst( parent, Ast::ExpressionStatementAst )
138- {
139- }
140- AssignmentAst::AssignmentAst ( Ast* parent )
141- : StatementAst( parent, Ast::AssignmentAst ), yieldValue( 0 )
142- {
143- }
144- TargetAst::TargetAst ( Ast* parent, Ast::AstType type )
145- : Ast( parent, type )
146- {
147- }
148- AtomAst::AtomAst ( Ast* parent )
149- : PrimaryAst( parent, Ast::AtomAst ), identifier( 0 ), literal( 0 ), enclosure( 0 )
150- {
151- }
152- EnclosureAst::EnclosureAst ( Ast* parent )
153- : Ast( parent, Ast::EnclosureAst ), list( 0 ), generator( 0 ), dict( 0 ), yield( 0 )
154- {
155- }
156- ListAst::ListAst ( Ast* parent )
157- : Ast( parent, Ast::ListAst ), listGenerator( 0 )
158- {
159- }
160- ListForAst::ListForAst ( Ast* parent )
161- : Ast( parent, Ast::ListForAst ), nextGenerator( 0 ), nextCondition( 0 )
162- {
163- }
164- ListIfAst::ListIfAst ( Ast* parent )
165- : Ast( parent, Ast::ListIfAst ), condition( 0 ), nextGenerator( 0 ), nextCondition( 0 )
166- {
167- }
168- GeneratorAst::GeneratorAst ( Ast* parent )
169- : Ast( parent, Ast::GeneratorAst ), generatedValue( 0 ), generator( 0 )
170- {
171- }
172- GeneratorForAst::GeneratorForAst ( Ast* parent )
173- : Ast( parent, Ast::GeneratorForAst ), iterableObject( 0 ),
174- nextGenerator ( 0 ), nextCondition( 0 )
175- {
176- }
177- GeneratorIfAst::GeneratorIfAst ( Ast* parent )
178- : Ast( parent, Ast::GeneratorIfAst ), condition( 0 ), nextGenerator( 0 ), nextCondition( 0 )
179- {
180- }
181- DictionaryAst::DictionaryAst ( Ast* parent )
182- : Ast( parent, Ast::DictionaryAst )
183- {
184- }
185- PrimaryAst::PrimaryAst ( Ast* parent, Ast::AstType type )
186- : ExpressionAst( parent, type )
187- {
188- }
189- AttributeReferenceAst::AttributeReferenceAst ( Ast* parent )
190- : PrimaryAst( parent, Ast::AttributeReferenceAst ), primary( 0 ), identifier( 0 )
191- {
192- }
193- SubscriptAst::SubscriptAst ( Ast* parent )
194- : PrimaryAst( parent, Ast::SubscriptAst ), primary( 0 )
195- {
196- }
197- SliceAst::SliceAst ( Ast* parent, Ast::AstType type )
198- : PrimaryAst( parent, type ), primary( 0 )
199- {
200- }
201- ExtendedSliceAst::ExtendedSliceAst ( Ast* parent )
202- : SliceAst( parent, Ast::ExtendedSliceAst )
203- {
204- }
205- SimpleSliceAst::SimpleSliceAst ( Ast* parent )
206- : SliceAst( parent, Ast::SimpleSliceAst )
207- {
208- }
209- SliceItemAst::SliceItemAst ( Ast* parent, Ast::AstType type )
210- : Ast( parent, type )
211- {
212- }
213- ProperSliceItemAst::ProperSliceItemAst ( Ast* parent )
214- : SliceItemAst( parent, Ast::ProperSliceItemAst ), stride( 0 )
215- {
216- }
217- ExpressionSliceItemAst::ExpressionSliceItemAst ( Ast* parent )
218- : SliceItemAst( parent, Ast::ExpressionSliceItemAst ), sliceExpression( 0 )
219- {
220- }
221- EllipsisSliceItemAst::EllipsisSliceItemAst ( Ast* parent )
222- : SliceItemAst( parent, Ast::EllipsisSliceItemAst )
223- {
224- }
225- CallAst::CallAst ( Ast* parent )
226- : PrimaryAst( parent, Ast::CallAst ), callable( 0 ), generator( 0 )
227- {
228- }
229- ArithmeticExpressionAst::ArithmeticExpressionAst ( Ast* parent, Ast::AstType type )
230- : ExpressionAst( parent, type )
231- {
232- }
233- UnaryExpressionAst::UnaryExpressionAst ( Ast* parent )
234- : ArithmeticExpressionAst( parent, Ast::UnaryExpressionAst ), operand( 0 )
235- {
236- }
237- BinaryExpressionAst::BinaryExpressionAst ( Ast* parent )
238- : ArithmeticExpressionAst( parent, Ast::BinaryExpressionAst ), lhs( 0 ), rhs( 0 )
239- {
240- }
241- ComparisonAst::ComparisonAst ( Ast* parent )
242- : BooleanOperationAst( parent, Ast::ComparisonAst ), firstComparator( 0 )
243- {
244- }
245- BooleanOperationAst::BooleanOperationAst ( Ast* parent, Ast::AstType type )
246- : ExpressionAst( parent, type )
247- {
248- }
249- ExpressionAst::ExpressionAst ( Ast* parent, Ast::AstType type )
250- : Ast( parent, type )
251- {
252- }
253- ConditionalExpressionAst::ConditionalExpressionAst ( Ast* parent )
254- : ExpressionAst( parent, Ast::ConditionalExpressionAst ),
255- mainExpression( 0 ), condition( 0 ), elseExpression( 0 )
256- {
257- }
258- LambdaAst::LambdaAst ( Ast* parent )
259- : ExpressionAst( parent, Ast::LambdaAst ), expression( 0 )
260- {
261- }
262-
263- DefaultParameterAst::DefaultParameterAst ( Ast * parent )
264- : ParameterAst( parent, Ast::DefaultParameterAst ), name( 0 ), value( 0 )
265- {
266- }
267-
268- ParameterPartAst::ParameterPartAst ( Ast * parent, Ast::AstType type )
269- : Ast( parent, type )
270- {
271- }
272-
273- IdentifierParameterPartAst::IdentifierParameterPartAst ( Ast * parent )
274- : ParameterPartAst( parent, Ast::IdentifierParameterPartAst ), name( 0 )
275- {
276- }
277-
278- ListParameterPartAst::ListParameterPartAst ( Ast * parent )
279- : ParameterPartAst( parent, Ast::ListParameterPartAst )
280- {
281- }
282-
283- DictionaryParameterAst::DictionaryParameterAst ( Ast * parent )
284- : ParameterAst( parent, Ast::DictionaryParameterAst ), name( 0 )
285- {
286- }
287-
288- ListParameterAst::ListParameterAst ( Ast * parent )
289- : ParameterAst( parent, Ast::ListParameterAst ), name( 0 )
290- {
291- }
292-
293- BooleanNotOperationAst::BooleanNotOperationAst ( Ast * parent )
294- : BooleanOperationAst( parent, Ast::BooleanNotOperationAst ), op( 0 )
295- {
296- }
297-
298- BooleanOrOperationAst::BooleanOrOperationAst ( Ast * parent )
299- : BooleanOperationAst( parent, Ast::BooleanOrOperationAst ), lhs( 0 ), rhs( 0 )
300- {
301- }
302-
303- BooleanAndOperationAst::BooleanAndOperationAst ( Ast * parent )
304- : BooleanOperationAst( parent, Ast::BooleanAndOperationAst ), lhs( 0 ), rhs( 0 )
305- {
306- }
307-
308- IdentifierAst::IdentifierAst ( Ast * parent )
309- : ExpressionAst( parent, Ast::IdentifierAst )
310- {
311- }
312-
313- LiteralAst::LiteralAst ( Ast* parent )
314- : Ast( parent, Ast::LiteralAst )
315- {
316- }
317-
318- IdentifierTargetAst::IdentifierTargetAst ( Ast * parent )
319- : TargetAst( parent, Ast::IdentifierTargetAst ), identifier( 0 )
320- {
321- }
322-
323- TupleTargetAst::TupleTargetAst ( Ast * parent )
324- : TargetAst( parent, Ast::TupleTargetAst )
325- {
326- }
327-
328- ListTargetAst::ListTargetAst ( Ast * parent )
329- : TargetAst( parent, Ast::ListTargetAst )
330- {
331- }
332-
333- AttributeReferenceTargetAst::AttributeReferenceTargetAst ( Ast * parent )
334- : TargetAst( parent, Ast::AttributeReferenceTargetAst ), attribute( 0 )
335- {
336- }
337-
338- SubscriptTargetAst::SubscriptTargetAst ( Ast * parent )
339- : TargetAst( parent, Ast::SubscriptTargetAst ), subscript( 0 )
340- {
341- }
342-
343- SliceTargetAst::SliceTargetAst ( Ast * parent )
344- : TargetAst( parent, Ast::SliceTargetAst ), slice( 0 )
345- {
346- }
347-
348-
34935}
35036
35137
0 commit comments