Changeset 564 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/src/Class.cpp
- Timestamp:
- May 5, 2008, 2:17:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/Class.cpp
r563 r564 646 646 647 647 return false; 648 }649 650 CClass *Classes::Create( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const char *name){651 return new CClass(namespaceScopes, importedNamespaces, name);652 }653 bool Classes::Insert( CClass *pClass, int nowLine )654 {655 /////////////////////////////////656 // ハッシュデータに追加657 /////////////////////////////////658 659 if( !Put( pClass ) )660 {661 compiler.errorMessenger.Output(15,pClass->GetName(), nowLine);662 return false;663 }664 return true;665 }666 CClass *Classes::Add( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const char *name,int nowLine){667 //////////////////////////////////////////////////////////////////////////668 // クラスを追加669 // ※名前のみを登録。その他の情報はSetClassメソッドで!670 //////////////////////////////////////////////////////////////////////////671 672 CClass *pClass = Create(namespaceScopes, importedNamespaces, name);673 674 if( !Insert( pClass, nowLine ) )675 {676 return NULL;677 }678 679 return pClass;680 648 } 681 649
Note:
See TracChangeset
for help on using the changeset viewer.