Small refactoring
This commit is contained in:
parent
9d70926fcd
commit
0ac4de2a5e
|
@ -572,7 +572,7 @@ Scope *clangimport::AstNode::createScope(TokenList *tokenList, Scope::ScopeType
|
||||||
scope->classDef = def;
|
scope->classDef = def;
|
||||||
scope->check = nestedIn->check;
|
scope->check = nestedIn->check;
|
||||||
scope->bodyStart = addtoken(tokenList, "{");
|
scope->bodyStart = addtoken(tokenList, "{");
|
||||||
mData->scopeAccessControl[scope] = (scopeType == Scope::ScopeType::eClass) ? AccessControl::Private : AccessControl::Public;
|
mData->scopeAccessControl[scope] = scope->defaultAccess();
|
||||||
if (!children2.empty()) {
|
if (!children2.empty()) {
|
||||||
tokenList->back()->scope(scope);
|
tokenList->back()->scope(scope);
|
||||||
for (AstNodePtr astNode: children2) {
|
for (AstNodePtr astNode: children2) {
|
||||||
|
|
Loading…
Reference in New Issue