Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit aa49ade

Browse files
author
Juanjo Alvarez
committed
Used introspection to correctly set the children on their right properties
Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
1 parent ffba7f8 commit aa49ade

197 files changed

Lines changed: 1634553 additions & 1044487 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

fixtures/_integration.cpp.legacy

Lines changed: 62 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CPPASTTranslationUnit {
3030
. . . Properties: {
3131
. . . . IsActive: true
3232
. . . . IsFrozen: true
33-
. . . . internalRole: Prop_OWNED_DECLARATION
33+
. . . . internalRole: XXXProp_Declarations
3434
. . . }
3535
. . . Children: {
3636
. . . . 0: CPPASTName {
@@ -50,7 +50,7 @@ CPPASTTranslationUnit {
5050
. . . . . . IsFrozen: true
5151
. . . . . . IsQualified: false
5252
. . . . . . Name: std
53-
. . . . . . internalRole: Prop_QUALIFIED_NAME
53+
. . . . . . internalRole: XXXProp_QualifiedName
5454
. . . . . }
5555
. . . . }
5656
. . . }
@@ -72,7 +72,7 @@ CPPASTTranslationUnit {
7272
. . . . IsDefaulted: false
7373
. . . . IsDeleted: false
7474
. . . . IsFrozen: true
75-
. . . . internalRole: Prop_OWNED_DECLARATION
75+
. . . . internalRole: XXXProp_Declarations
7676
. . . }
7777
. . . Children: {
7878
. . . . 0: CPPASTSimpleDeclSpecifier {
@@ -108,7 +108,7 @@ CPPASTTranslationUnit {
108108
. . . . . . IsVolatile: false
109109
. . . . . . StorageClass: unspecified
110110
. . . . . . Type: int
111-
. . . . . . internalRole: Prop_DECL_SPECIFIER
111+
. . . . . . internalRole: XXXProp_DeclSpecifier
112112
. . . . . }
113113
. . . . }
114114
. . . . 1: CPPASTFunctionDeclarator {
@@ -134,7 +134,7 @@ CPPASTTranslationUnit {
134134
. . . . . . IsPureVirtual: false
135135
. . . . . . IsVolatile: false
136136
. . . . . . TakesVarArgs: false
137-
. . . . . . internalRole: Prop_DECLARATOR
137+
. . . . . . internalRole: XXXProp_Declarator
138138
. . . . . }
139139
. . . . . Children: {
140140
. . . . . . 0: CPPASTName {
@@ -154,7 +154,7 @@ CPPASTTranslationUnit {
154154
. . . . . . . . IsFrozen: true
155155
. . . . . . . . IsQualified: false
156156
. . . . . . . . Name: main
157-
. . . . . . . . internalRole: Prop_DECLARATOR_NAME
157+
. . . . . . . . internalRole: XXXProp_Name
158158
. . . . . . . }
159159
. . . . . . }
160160
. . . . . }
@@ -174,7 +174,7 @@ CPPASTTranslationUnit {
174174
. . . . . Properties: {
175175
. . . . . . IsActive: true
176176
. . . . . . IsFrozen: true
177-
. . . . . . internalRole: Prop_FUNCTION_BODY
177+
. . . . . . internalRole: XXXProp_Body
178178
. . . . . }
179179
. . . . . Children: {
180180
. . . . . . 0: CPPASTExpressionStatement {
@@ -192,7 +192,7 @@ CPPASTTranslationUnit {
192192
. . . . . . . Properties: {
193193
. . . . . . . . IsActive: true
194194
. . . . . . . . IsFrozen: true
195-
. . . . . . . . internalRole: Prop_NESTED_STATEMENT
195+
. . . . . . . . internalRole: XXXProp_Statements
196196
. . . . . . . }
197197
. . . . . . . Children: {
198198
. . . . . . . . 0: CPPASTBinaryExpression {
@@ -208,13 +208,13 @@ CPPASTTranslationUnit {
208208
. . . . . . . . . . Col: 28
209209
. . . . . . . . . }
210210
. . . . . . . . . Properties: {
211-
. . . . . . . . . . ExpressionType: org.eclipse.cdt.internal.core.dom.parser.ProblemType@28eaa59a
211+
. . . . . . . . . . ExpressionType: org.eclipse.cdt.internal.core.dom.parser.ProblemType@4567f35d
212212
. . . . . . . . . . ExpressionValueCategory: PRVALUE
213213
. . . . . . . . . . IsActive: true
214214
. . . . . . . . . . IsFrozen: true
215215
. . . . . . . . . . IsLValue: false
216216
. . . . . . . . . . Operator: left <<
217-
. . . . . . . . . . internalRole: Prop_EXPRESSION
217+
. . . . . . . . . . internalRole: XXXProp_Expression
218218
. . . . . . . . . }
219219
. . . . . . . . . Children: {
220220
. . . . . . . . . . 0: CPPASTIdExpression {
@@ -230,12 +230,12 @@ CPPASTTranslationUnit {
230230
. . . . . . . . . . . . Col: 9
231231
. . . . . . . . . . . }
232232
. . . . . . . . . . . Properties: {
233-
. . . . . . . . . . . . ExpressionType: org.eclipse.cdt.internal.core.dom.parser.ProblemType@28eaa59a
233+
. . . . . . . . . . . . ExpressionType: org.eclipse.cdt.internal.core.dom.parser.ProblemType@4567f35d
234234
. . . . . . . . . . . . ExpressionValueCategory: PRVALUE
235235
. . . . . . . . . . . . IsActive: true
236236
. . . . . . . . . . . . IsFrozen: true
237237
. . . . . . . . . . . . IsLValue: false
238-
. . . . . . . . . . . . internalRole: Prop_OPERAND_ONE
238+
. . . . . . . . . . . . internalRole: XXXProp_Operand1
239239
. . . . . . . . . . . }
240240
. . . . . . . . . . . Children: {
241241
. . . . . . . . . . . . 0: CPPASTName {
@@ -255,7 +255,7 @@ CPPASTTranslationUnit {
255255
. . . . . . . . . . . . . . IsFrozen: true
256256
. . . . . . . . . . . . . . IsQualified: false
257257
. . . . . . . . . . . . . . Name: cout
258-
. . . . . . . . . . . . . . internalRole: Prop_ID_NAME
258+
. . . . . . . . . . . . . . internalRole: XXXProp_Name
259259
. . . . . . . . . . . . . }
260260
. . . . . . . . . . . . }
261261
. . . . . . . . . . . }
@@ -279,7 +279,30 @@ CPPASTTranslationUnit {
279279
. . . . . . . . . . . . IsFrozen: true
280280
. . . . . . . . . . . . IsLValue: true
281281
. . . . . . . . . . . . LiteralValue: "Hello, World!"
282-
. . . . . . . . . . . . internalRole: Prop_OPERAND_TWO
282+
. . . . . . . . . . . . internalRole: XXXProp_InitOperand2
283+
. . . . . . . . . . . . kind: string_literal
284+
. . . . . . . . . . . }
285+
. . . . . . . . . . }
286+
. . . . . . . . . . 2: CPPASTLiteralExpression {
287+
. . . . . . . . . . . Roles: Unannotated
288+
. . . . . . . . . . . StartPosition: {
289+
. . . . . . . . . . . . Offset: 67
290+
. . . . . . . . . . . . Line: 6
291+
. . . . . . . . . . . . Col: 13
292+
. . . . . . . . . . . }
293+
. . . . . . . . . . . EndPosition: {
294+
. . . . . . . . . . . . Offset: 82
295+
. . . . . . . . . . . . Line: 6
296+
. . . . . . . . . . . . Col: 28
297+
. . . . . . . . . . . }
298+
. . . . . . . . . . . Properties: {
299+
. . . . . . . . . . . . ExpressionType: const char [14]
300+
. . . . . . . . . . . . ExpressionValueCategory: LVALUE
301+
. . . . . . . . . . . . IsActive: true
302+
. . . . . . . . . . . . IsFrozen: true
303+
. . . . . . . . . . . . IsLValue: true
304+
. . . . . . . . . . . . LiteralValue: "Hello, World!"
305+
. . . . . . . . . . . . internalRole: XXXProp_Operand2
283306
. . . . . . . . . . . . kind: string_literal
284307
. . . . . . . . . . . }
285308
. . . . . . . . . . }
@@ -302,7 +325,7 @@ CPPASTTranslationUnit {
302325
. . . . . . . Properties: {
303326
. . . . . . . . IsActive: true
304327
. . . . . . . . IsFrozen: true
305-
. . . . . . . . internalRole: Prop_NESTED_STATEMENT
328+
. . . . . . . . internalRole: XXXProp_Statements
306329
. . . . . . . }
307330
. . . . . . . Children: {
308331
. . . . . . . . 0: CPPASTLiteralExpression {
@@ -324,7 +347,30 @@ CPPASTTranslationUnit {
324347
. . . . . . . . . . IsFrozen: true
325348
. . . . . . . . . . IsLValue: false
326349
. . . . . . . . . . LiteralValue: 0
327-
. . . . . . . . . . internalRole: Prop_RETURNVALUE
350+
. . . . . . . . . . internalRole: XXXProp_ReturnArgument
351+
. . . . . . . . . . kind: integer_constant
352+
. . . . . . . . . }
353+
. . . . . . . . }
354+
. . . . . . . . 1: CPPASTLiteralExpression {
355+
. . . . . . . . . Roles: Unannotated
356+
. . . . . . . . . StartPosition: {
357+
. . . . . . . . . . Offset: 95
358+
. . . . . . . . . . Line: 7
359+
. . . . . . . . . . Col: 12
360+
. . . . . . . . . }
361+
. . . . . . . . . EndPosition: {
362+
. . . . . . . . . . Offset: 96
363+
. . . . . . . . . . Line: 7
364+
. . . . . . . . . . Col: 13
365+
. . . . . . . . . }
366+
. . . . . . . . . Properties: {
367+
. . . . . . . . . . ExpressionType: int
368+
. . . . . . . . . . ExpressionValueCategory: PRVALUE
369+
. . . . . . . . . . IsActive: true
370+
. . . . . . . . . . IsFrozen: true
371+
. . . . . . . . . . IsLValue: false
372+
. . . . . . . . . . LiteralValue: 0
373+
. . . . . . . . . . internalRole: XXXProp_ReturnValue
328374
. . . . . . . . . . kind: integer_constant
329375
. . . . . . . . . }
330376
. . . . . . . . }

0 commit comments

Comments
 (0)