mirror of https://github.com/golang/go.git
parent
d30c9a4be5
commit
0ba1db7475
|
|
@ -572,7 +572,7 @@ func (x Integer) cmp (y Integer) int {
|
|||
case zero(d.val): return 0;
|
||||
default : return +1;
|
||||
}
|
||||
CHECK(false); // unreachable
|
||||
panic("UNREACHABLE");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -348,6 +348,8 @@ func (P *Parser) ParseQualifiedIdent(pos int, ident string) *Globals.Object {
|
|||
P.Ecart();
|
||||
return nil;
|
||||
}
|
||||
|
||||
panic("UNREACHABLE");
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -412,6 +414,8 @@ func (P *Parser) ParseTypeName() *Globals.Type {
|
|||
P.Ecart();
|
||||
return Universe.bad_t;
|
||||
}
|
||||
|
||||
panic("UNREACHABLE");
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1525,6 +1529,7 @@ func (P *Parser) ParseIfStat() *AST.IfStat {
|
|||
P.CloseScope();
|
||||
|
||||
P.Ecart();
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1657,7 +1662,7 @@ func (P *Parser) ParseCommClause() {
|
|||
}
|
||||
|
||||
|
||||
func (P *Parser) ParseRangeStat() bool {
|
||||
func (P *Parser) ParseRangeStat() {
|
||||
P.Trace("RangeStat");
|
||||
|
||||
P.Expect(Scanner.RANGE);
|
||||
|
|
@ -1670,7 +1675,7 @@ func (P *Parser) ParseRangeStat() bool {
|
|||
}
|
||||
|
||||
|
||||
func (P *Parser) ParseSelectStat() bool {
|
||||
func (P *Parser) ParseSelectStat() {
|
||||
P.Trace("SelectStat");
|
||||
|
||||
P.Expect(Scanner.SELECT);
|
||||
|
|
|
|||
|
|
@ -609,6 +609,8 @@ func (S *Scanner) ScanEscape() string {
|
|||
default:
|
||||
S.Error(pos, "illegal char escape");
|
||||
}
|
||||
|
||||
return ""; // TODO fix this
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue