|
Lines 77-83
Link Here
|
| 77 |
IASTPointerOperator[] pointOps = declarator.getPointerOperators(); |
77 |
IASTPointerOperator[] pointOps = declarator.getPointerOperators(); |
| 78 |
writePointerOperators(declarator, pointOps); |
78 |
writePointerOperators(declarator, pointOps); |
| 79 |
IASTName name = declarator.getName(); |
79 |
IASTName name = declarator.getName(); |
| 80 |
name.accept(visitor); |
80 |
if (name != null) { |
|
|
81 |
name.accept(visitor); |
| 82 |
} |
| 81 |
IASTInitializer init = getInitializer(declarator); |
83 |
IASTInitializer init = getInitializer(declarator); |
| 82 |
if(init!= null) { |
84 |
if(init!= null) { |
| 83 |
init.accept(visitor); |
85 |
init.accept(visitor); |
|
Lines 93-99
Link Here
|
| 93 |
private void writeFunctionDeclarator(IASTStandardFunctionDeclarator funcDec) { |
95 |
private void writeFunctionDeclarator(IASTStandardFunctionDeclarator funcDec) { |
| 94 |
IASTPointerOperator[] pointOps = funcDec.getPointerOperators(); |
96 |
IASTPointerOperator[] pointOps = funcDec.getPointerOperators(); |
| 95 |
writePointerOperators(funcDec, pointOps); |
97 |
writePointerOperators(funcDec, pointOps); |
| 96 |
funcDec.getName().accept(visitor); |
98 |
if (funcDec.getName() != null) { |
|
|
99 |
funcDec.getName().accept(visitor); |
| 100 |
} |
| 97 |
writeNestedDeclarator(funcDec); |
101 |
writeNestedDeclarator(funcDec); |
| 98 |
writeParameters(funcDec); |
102 |
writeParameters(funcDec); |
| 99 |
writeInitializer(funcDec); |
103 |
writeInitializer(funcDec); |
|
Lines 206-212
Link Here
|
| 206 |
IASTPointerOperator[] pointOps = arrDecl.getPointerOperators(); |
210 |
IASTPointerOperator[] pointOps = arrDecl.getPointerOperators(); |
| 207 |
writePointerOperators(arrDecl, pointOps); |
211 |
writePointerOperators(arrDecl, pointOps); |
| 208 |
IASTName name = arrDecl.getName(); |
212 |
IASTName name = arrDecl.getName(); |
| 209 |
name.accept(visitor); |
213 |
if (name != null) { |
|
|
214 |
name.accept(visitor); |
| 215 |
} |
| 210 |
|
216 |
|
| 211 |
writeNestedDeclarator(arrDecl); |
217 |
writeNestedDeclarator(arrDecl); |
| 212 |
|
218 |
|