Changeset 511 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/include/Variable.h
- Timestamp:
- Apr 30, 2008, 8:04:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/include/Variable.h
r509 r511 57 57 58 58 public: 59 Variable( const string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData ) 60 : Symbol( ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( name ) ) 61 , type( type ) 62 , isConst( isConst ) 63 , isRef( isRef ) 64 , isArray( false ) 65 , isParameter( false) 66 , paramStrForConstructor( paramStrForConstructor ) 67 , hasInitData( hasInitData ) 68 { 69 } 70 Variable( const NamespaceScopes &namespaceScopes, const string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData ) 71 : Symbol( namespaceScopes, name ) 72 , type( type ) 73 , isConst( isConst ) 74 , isRef( isRef ) 75 , isArray( false ) 76 , isParameter( false) 77 , paramStrForConstructor( paramStrForConstructor ) 78 , hasInitData( hasInitData ) 79 { 80 } 81 Variable( const Variable &var ) 82 : Symbol( var ) 83 , type( var.type ) 84 , isConst( var.isConst ) 85 , isRef( var.isRef ) 86 , isArray( var.isArray ) 87 , subscripts( var.subscripts ) 88 , isParameter( false ) 89 , paramStrForConstructor( var.paramStrForConstructor ) 90 , hasInitData( var.hasInitData ) 91 { 92 } 93 Variable() 94 { 95 } 96 ~Variable() 97 { 98 } 59 Variable( const string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData ); 60 Variable( const NamespaceScopes &namespaceScopes, const string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData ); 61 Variable( const Variable &var ); 62 Variable(); 99 63 100 64 void SetArray( const Subscripts &subscripts ){
Note:
See TracChangeset
for help on using the changeset viewer.