comparison dmd/CaseStatement.d @ 68:ee3a9f34dc48

final bits of codegen implementation to compile Phobos
author korDen
date Tue, 24 Aug 2010 16:44:34 +0400
parents cab4c37afb89
children 2e2a5c3f943a
comparison
equal deleted inserted replaced
67:f708f0452e81 68:ee3a9f34dc48
117 error("case not in switch statement"); 117 error("case not in switch statement");
118 statement = statement.semantic(sc); 118 statement = statement.semantic(sc);
119 return this; 119 return this;
120 } 120 }
121 121
122 int compare(Object obj) 122 int opCmp(Object obj)
123 { 123 {
124 assert(false); 124 // Sort cases so we can do an efficient lookup
125 CaseStatement cs2 = cast(CaseStatement)obj;
126
127 return exp.opCmp(cs2.exp);
125 } 128 }
126 129
127 bool usesEH() 130 bool usesEH()
128 { 131 {
129 assert(false); 132 assert(false);