From fd8cd69a47e65a675ec832c580ecb53f0ff94892 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Fri, 26 Jun 2009 09:11:14 +0200 Subject: Introduced Document::CheckMode. --- src/shared/cplusplus/Semantic.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/shared/cplusplus/Semantic.cpp') diff --git a/src/shared/cplusplus/Semantic.cpp b/src/shared/cplusplus/Semantic.cpp index ff0fa418f8..9e7108bbc5 100644 --- a/src/shared/cplusplus/Semantic.cpp +++ b/src/shared/cplusplus/Semantic.cpp @@ -67,6 +67,7 @@ public: Data(Semantic *semantic, Control *control) : semantic(semantic), control(control), + skipFunctionBodies(false), visibility(Symbol::Public), methodKey(Function::NormalMethod), checkSpecifier(0), @@ -89,6 +90,7 @@ public: Semantic *semantic; Control *control; + bool skipFunctionBodies; int visibility; int methodKey; CheckSpecifier *checkSpecifier; @@ -142,6 +144,12 @@ Name *Semantic::check(NameAST *name, Scope *scope) Name *Semantic::check(NestedNameSpecifierAST *name, Scope *scope) { return d->checkName->check(name, scope); } +bool Semantic::skipFunctionBodies() const +{ return d->skipFunctionBodies; } + +void Semantic::setSkipFunctionBodies(bool skipFunctionBodies) +{ d->skipFunctionBodies = skipFunctionBodies; } + int Semantic::currentVisibility() const { return d->visibility; } -- cgit v1.2.1