mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Change the parsing mode to be structural for the
TypeInfo parsing.
This commit is contained in:
parent
d738d66c3c
commit
310112d6cd
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-04-07 Alain Magloire
|
||||||
|
|
||||||
|
Using a complete parser is to heavy for the typeInfo
|
||||||
|
falling back to structural.
|
||||||
|
|
||||||
|
* browser/org/eclipse/cdt/internal/core/browser/cache/TypeMatchLocator.java
|
||||||
|
|
||||||
2004-04-06 Alain Magloire
|
2004-04-06 Alain Magloire
|
||||||
|
|
||||||
Cache the values in the info.
|
Cache the values in the info.
|
||||||
|
|
|
@ -315,7 +315,7 @@ public class TypeMatchLocator implements ISourceElementRequestor, ICSearchConsta
|
||||||
|
|
||||||
IResource resource= null;
|
IResource resource= null;
|
||||||
IPath path= null;
|
IPath path= null;
|
||||||
Object obj= (Object) resourceStack.top();
|
Object obj= resourceStack.top();
|
||||||
if (obj instanceof IResource)
|
if (obj instanceof IResource)
|
||||||
resource= (IResource) obj;
|
resource= (IResource) obj;
|
||||||
else
|
else
|
||||||
|
@ -500,7 +500,7 @@ public class TypeMatchLocator implements ISourceElementRequestor, ICSearchConsta
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
IScanner scanner = ParserFactory.createScanner( reader, realPath.toOSString(), scanInfo, ParserMode.COMPLETE_PARSE, language, this, ParserUtil.getScannerLogService() );
|
IScanner scanner = ParserFactory.createScanner( reader, realPath.toOSString(), scanInfo, ParserMode.COMPLETE_PARSE, language, this, ParserUtil.getScannerLogService() );
|
||||||
parser = ParserFactory.createParser( scanner, this, ParserMode.COMPLETE_PARSE, language, ParserUtil.getParserLogService() );
|
parser = ParserFactory.createParser( scanner, this, ParserMode.STRUCTURAL_PARSE, language, ParserUtil.getParserLogService() );
|
||||||
}
|
}
|
||||||
catch( ParserFactoryError pfe )
|
catch( ParserFactoryError pfe )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue