Use Prototype instead of Function.

This commit is contained in:
Roberto Raggi
2010-08-05 17:06:16 +02:00
committed by Oswald Buddenhagen
parent 9aa991d636
commit 4ff3ee2ff0
11 changed files with 20 additions and 28 deletions

View File

@@ -118,7 +118,7 @@ Scope *Scope::enclosingEnumScope() const
return scope;
}
Scope *Scope::enclosingFunctionScope() const
Scope *Scope::enclosingPrototypeScope() const
{
Scope *scope = enclosingScope();
for (; scope; scope = scope->enclosingScope()) {
@@ -166,11 +166,6 @@ bool Scope::isBlockScope() const
return false;
}
bool Scope::isPrototypeScope() const
{
return isFunctionScope();
}
bool Scope::isObjCClassScope() const
{
if (_owner)
@@ -185,7 +180,7 @@ bool Scope::isObjCProtocolScope() const
return false;
}
bool Scope::isFunctionScope() const
bool Scope::isPrototypeScope() const
{
if (_owner)
return _owner->isFunction();