Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
0ba1db74
Commit
0ba1db74
authored
Sep 11, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed missing return issues
R=r OCL=15168 CL=15168
parent
d30c9a4b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
integer.go
src/pkg/integer.go
+1
-1
parser.go
usr/gri/gosrc/parser.go
+7
-2
scanner.go
usr/gri/gosrc/scanner.go
+2
-0
No files found.
src/pkg/integer.go
View file @
0ba1db74
...
...
@@ -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"
);
}
...
...
usr/gri/gosrc/parser.go
View file @
0ba1db74
...
...
@@ -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
);
...
...
usr/gri/gosrc/scanner.go
View file @
0ba1db74
...
...
@@ -609,6 +609,8 @@ func (S *Scanner) ScanEscape() string {
default
:
S
.
Error
(
pos
,
"illegal char escape"
);
}
return
""
;
// TODO fix this
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment