namedscope.h

来自「著名的uncle Bob的Agile software development的」· C头文件 代码 · 共 34 行

H
34
字号
#ifndef PARSER_NAMED_SCOPE
#define PARSER_NAMED_SCOPE

#include "Parser/scope.h"
class Parser::Identifier;

//----------------------------------------------------------
// Name
//  NamedScope
//
// Description
//  This class represents a named scope.  A named scope is a scope
//  which is created within a class or a function.  The scope carries
//  the name of the class or function.  Thus a named scope has an
//  identifier which specifies its name.
//
//  The parent Scope of a NamedScope is the Scope of itsName;
//

namespace Parser
{
    class NamedScope;
};

class Parser::NamedScope : public Parser::Scope
{
  public:
    NamedScope(Identifier& theName);
    virtual Scope* GetParentScope();

  private:
    Identifier& itsName;
};
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?