mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Removed AbstactGNUSourceCodeParser#mostRelevantScopeNode
This commit is contained in:
parent
21c09e5d0f
commit
a27d2a6da5
3 changed files with 4908 additions and 4925 deletions
|
@ -484,7 +484,6 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
|
||||||
|
|
||||||
IASTCompoundStatement result = createCompoundStatement();
|
IASTCompoundStatement result = createCompoundStatement();
|
||||||
((ASTNode) result).setOffset(startingOffset);
|
((ASTNode) result).setOffset(startingOffset);
|
||||||
result.setParent(mostRelevantScopeNode);
|
|
||||||
result.setPropertyInParent(IASTFunctionDefinition.FUNCTION_BODY);
|
result.setPropertyInParent(IASTFunctionDefinition.FUNCTION_BODY);
|
||||||
while (LT(1) != IToken.tRBRACE && LT(1) != IToken.tCOMPLETION && LT(1) != IToken.tEOC) {
|
while (LT(1) != IToken.tRBRACE && LT(1) != IToken.tCOMPLETION && LT(1) != IToken.tEOC) {
|
||||||
int checkToken = LA(1).hashCode();
|
int checkToken = LA(1).hashCode();
|
||||||
|
@ -2087,6 +2086,5 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
|
||||||
throwBacktrack(token.getOffset(), token.getLength());
|
throwBacktrack(token.getOffset(), token.getLength());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected IASTNode mostRelevantScopeNode;
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -559,7 +559,6 @@ public class GNUCSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
translationUnit.setLocationResolver(scanner.getLocationResolver());
|
translationUnit.setLocationResolver(scanner.getLocationResolver());
|
||||||
mostRelevantScopeNode = translationUnit;
|
|
||||||
|
|
||||||
int lastBacktrack = -1;
|
int lastBacktrack = -1;
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue