Changeset 113 in dev for BasicCompiler_Common/TypeDef.h


Ignore:
Timestamp:
May 10, 2007, 12:27:41 PM (17 years ago)
Author:
dai_9181
Message:

TypeDef、Declareの名前空間対応を行った。
TypeDef、Declareをローカル領域で使用した際、エラーを表示するようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/TypeDef.h

    r78 r113  
    1313    friend TypeDefCollection;
    1414
    15     string newName;
     15    NamespaceScopes namespaceScopes;
     16
     17    string name;
    1618    string baseName;
    1719    Type baseType;
    1820public:
    19     TypeDef( const string &newName, const string &baseName );
     21    TypeDef( const NamespaceScopes &namespaceScopes, const string &name, const string &baseName );
    2022    ~TypeDef();
    2123
    22     const string &GetNewName(){
    23         return newName;
     24    const string &GetName() const
     25    {
     26        return name;
    2427    }
    25     const string &GetBaseName(){
     28    const string &GetBaseName() const
     29    {
    2630        return baseName;
    2731    }
    28     const Type &GetBaseType(){
     32    const Type &GetBaseType() const
     33    {
    2934        return baseType;
    3035    }
     36
     37    bool IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const;
     38    bool IsEqualSymbol( const string &name ) const;
    3139};
    3240
     
    3745    ~TypeDefCollection();
    3846
    39     void Add( const string &newName, const string &baseName );
     47    void Add( const NamespaceScopes &namespaceScopes, const string &name, const string &baseName );
    4048    int GetIndex( const string &typeName ) const;
    4149
    4250private:
    43     void Add( const string &expression, int nowLine );
     51    void Add( const NamespaceScopes &namespaceScopes, const string &expression, int nowLine );
    4452public:
    4553    void Init();
Note: See TracChangeset for help on using the changeset viewer.