mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed Bug 51302 - Content Assist: No completion list available following namespace declaration.
This commit is contained in:
parent
78769c3537
commit
3676f03756
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
2004-02-10 John Camelon
|
||||
Fixed Bug 51302 - Content Assist: No completion list available following namespace declaration.
|
||||
|
||||
2004-02-10 John Camelon
|
||||
Refactored Parser.java to allow inline small functions and tightened the signatures for statement().
|
||||
Refactored Scanner.java to allow for data to be encapsulated to allow for IScannerExtension to act upon it.
|
||||
|
|
|
@ -843,6 +843,8 @@ public abstract class Parser implements IParser
|
|||
{
|
||||
IToken first = consume(IToken.t_namespace);
|
||||
|
||||
IASTCompletionNode.CompletionKind kind = getCompletionKindForDeclaration(scope, null);
|
||||
|
||||
setCompletionValues(scope,CompletionKind.USER_SPECIFIED_NAME, Key.EMPTY );
|
||||
IToken identifier = null;
|
||||
// optional name
|
||||
|
@ -900,6 +902,7 @@ public abstract class Parser implements IParser
|
|||
|
||||
namespaceDefinition.setEndingOffsetAndLineNumber(
|
||||
last.getOffset() + last.getLength(), last.getLineNumber());
|
||||
setCompletionValues(scope, kind, Key.DECLARATION );
|
||||
namespaceDefinition.exitScope( requestor );
|
||||
}
|
||||
else if( LT(1) == IToken.tASSIGN )
|
||||
|
@ -912,6 +915,7 @@ public abstract class Parser implements IParser
|
|||
|
||||
ITokenDuple duple = name(scope);
|
||||
consume( IToken.tSEMI );
|
||||
setCompletionValues(scope, kind, Key.DECLARATION );
|
||||
try
|
||||
{
|
||||
astFactory.createNamespaceAlias(
|
||||
|
|
Loading…
Add table
Reference in a new issue