예제 #1
0
파일: astType.cpp 프로젝트: bsurmanski/wlc
ASTType *ASTUserType::getBaseType(){
    Identifier *base = getBaseIdentifier();
    if(base) {
        return base->getDeclaredType();
    }
    return NULL;
}
예제 #2
0
파일: ast.hpp 프로젝트: bsurmanski/wlc
 virtual ASTType *getDeclaredType() {
     if(id->isUserType()) return id->getDeclaredType();
     return NULL;
 }
예제 #3
0
파일: astScope.hpp 프로젝트: bsurmanski/wlc
 ASTType* getUserTypeScope() {
     if(type == Scope_Struct && owner) {
         return owner->getDeclaredType();
     }
     return NULL;
 }