Commit a1293b32 authored by Jesper Öqvist's avatar Jesper Öqvist
Browse files

Removed obsolete kludge

parent 84c45db7
......@@ -488,19 +488,6 @@ aspect Enums {
eq EnumConstant.getTypeAccess().nameType() = NameType.TYPE_NAME;
// generic traversal should traverse NTA as well
// this should be done automatically by the JastAdd
public int EnumConstant.getNumChild() {
return 5;
}
public ASTNode EnumConstant.getChild(int i) {
switch(i) {
case 3: return getTypeAccess();
case 4: return getInitOpt();
default: return super.getChild(i);
}
}
refine TypeCheck public void SwitchStmt.typeCheck() {
TypeDecl type = getExpr().type();
if((!type.isIntegralType() || type.isLong()) && !type.isEnumDecl())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment