Changeset 424 in dev for trunk/abdev/BasicCompiler_Common/Compile.cpp
- Timestamp:
- Mar 10, 2008, 5:39:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Compile.cpp
r402 r424 84 84 // ジェネリクスのクラス型記述を分析 85 85 /////////////////////////////////////////////////// 86 void SplitGenericClassInstance( const char *fullName, char *className, Jenga::Common::Strings &typeParameters )86 void SplitGenericClassInstance( const char *fullName, char *className, Jenga::Common::Strings &typeParameters, bool isDefiningClass, Jenga::Common::Strings *pTypeParameterBaseClassNames ) 87 87 { 88 if( isDefiningClass ) 89 { 90 if( !pTypeParameterBaseClassNames ) 91 { 92 SetError(); 93 } 94 pTypeParameterBaseClassNames->clear(); 95 } 96 88 97 int i = 0; 89 98 typeParameters.clear(); … … 109 118 SetError(1,NULL,cp); 110 119 } 111 112 120 typeParameters.push_back( temporary ); 121 122 if( isDefiningClass ) 123 { 124 // クラス定義中にこの関数が呼び出されたとき 125 126 if( fullName[i] == 1 && fullName[i+1] == ESC_AS ) 127 { 128 // 型パラメータの制約クラスを取得 129 i += 2; 130 GetIdentifierToken( temporary, fullName, i ); 131 if( temporary[0] == '\0' ) 132 { 133 extern int cp; 134 SetError(1,NULL,cp); 135 } 136 } 137 else 138 { 139 temporary[0] = 0; 140 } 141 pTypeParameterBaseClassNames->push_back( temporary ); 142 } 113 143 114 144 if( fullName[i] == ',' )
Note:
See TracChangeset
for help on using the changeset viewer.