1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/core
John Camelon 57d668240a Patch for Andrew Niefer.
For normal lookups in the symbol table, a HashMap is faster than the tree 
map, but for prefix lookups the TreeMap is faster.  So we are now using 
the HashMap for normal parses, and we use the TreeMap in the parse mode 
used by content assist.

Note that with these changes the results returned by the IASTNode.lookup 
function used by content assist are now in predictable order:  they are 
first sorted in the order of the scopes visited during the lookup and then 
they are sorted alphabetically

Core:
Modified symbol table constructor to take a ParseMode as a parameter.
Modified symbol table to use a TreeMap instead of HashMap when ParseMode is COMPLETION_PARSE.
Modified ASTNode.lookup to throw ASTNotImplementedException if called when ParseMode is not CONTEXTUAL_PARSE.

Core.tests:
Moved testBug48307_FriendFunction_1 & testBug48307_FriendFunction_2 to ContextualParseTest.
Updated ContextualParseTest now that the order of prefix lookup results is predictable.

UI:
Updated CompletionEngine to catch ASTNotImplementedException from IASTNode.lookup.
2004-01-15 23:06:58 +00:00
..
org.eclipse.cdt.core Patch for Andrew Niefer. 2004-01-15 23:06:58 +00:00
org.eclipse.cdt.core.aix Patch for Alain Magloire: 2003-12-05 18:53:06 +00:00
org.eclipse.cdt.core.linux Change the version to reflect the one in the head. 2003-12-05 18:40:06 +00:00
org.eclipse.cdt.core.qnx Change the version to reflect the one in the head. 2003-12-05 18:40:06 +00:00
org.eclipse.cdt.core.solaris Change the version to reflect the one in the head. 2003-12-05 18:40:06 +00:00
org.eclipse.cdt.core.tests Patch for Andrew Niefer. 2004-01-15 23:06:58 +00:00
org.eclipse.cdt.core.win32 Replace QNX copyright with standard CPL copyright. 2004-01-08 12:06:08 +00:00
org.eclipse.cdt.ui Patch for Andrew Niefer. 2004-01-15 23:06:58 +00:00
org.eclipse.cdt.ui.tests Updated classpath so it uses dynamic classpath entries. 2004-01-15 19:40:37 +00:00