forked from qt-creator/qt-creator
Fixed local usage highlighting for ObjC message parameters.
This commit is contained in:
@@ -694,8 +694,8 @@ bool CheckDeclaration::visit(ObjCMethodDeclarationAST *ast)
|
||||
symbol->setStorage(methodTy->storage());
|
||||
}
|
||||
|
||||
symbol->setStartOffset(tokenAt(selector->firstToken()).offset);
|
||||
symbol->setEndOffset(tokenAt(selector->lastToken()).offset);
|
||||
symbol->setStartOffset(tokenAt(ast->firstToken()).offset);
|
||||
symbol->setEndOffset(tokenAt(ast->lastToken()).offset);
|
||||
symbol->setVisibility(semantic()->currentObjCVisibility());
|
||||
|
||||
_scope->enterSymbol(symbol);
|
||||
|
||||
@@ -265,7 +265,6 @@ bool CheckDeclarator::visit(ObjCMethodPrototypeAST *ast)
|
||||
|
||||
ObjCMethod *method = control()->newObjCMethod(location, ast->selector->selector_name);
|
||||
ast->symbol = method;
|
||||
method->setSourceLocation(location);
|
||||
method->setScope(_scope);
|
||||
method->setVisibility(semantic()->currentVisibility());
|
||||
method->setReturnType(returnType);
|
||||
|
||||
Reference in New Issue
Block a user