コード例 #1
0
void TypeAnalyzer::assertFQClassCanBeProvided(string fqclassname) {
	ReadOnlyPropertySymbolTable* bound = reference->findFullyQualified(fqclassname);
	if(bound->isAbstract())
		throw new SemanticError(ABSTRACT_PROVISION);
}
コード例 #2
0
ファイル: TypeAnalyzer.cpp プロジェクト: tedivm/wake-compiler
void TypeAnalyzer::assertClassCanBeBound(Type* binding) {
	ReadOnlyPropertySymbolTable* bound = reference->find(binding->typedata._class.classname);
	if(bound->isAbstract())
		throw new SemanticError(ABSTRACT_PROVISION);
}