Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(463)

Delta Between Two Patch Sets: src/cmd/gc/yerr.h

Issue 5857045: code review 5857045: gc: improve error message for composite literals with u...
Left Patch Set: Created 13 years ago
Right Patch Set: diff -r f71a8aea4361 https://go.googlecode.com/hg/ Created 13 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/gc/go.errors ('k') | test/syntax/composite.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2010 The Go Authors. All rights reserved. 1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // Example-based syntax error messages. 5 // Example-based syntax error messages.
6 // See bisonerrors, Makefile, go.y. 6 // See bisonerrors, Makefile, go.y.
7 7
8 static struct { 8 static struct {
9 int yystate; 9 int yystate;
10 int yychar; 10 int yychar;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 376, '{', 59 376, '{',
60 "unexpected { at end of statement", 60 "unexpected { at end of statement",
61 ········ 61 ········
62 125, ';', 62 125, ';',
63 "argument to go/defer must be function call", 63 "argument to go/defer must be function call",
64 ········ 64 ········
65 425, ';', 65 425, ';',
66 "need trailing comma before newline in composite literal", 66 "need trailing comma before newline in composite literal",
67 ········ 67 ········
68 435, ';',
69 "need trailing comma before newline in composite literal",
70 ········
68 112, LNAME, 71 112, LNAME,
69 "nested func not allowed", 72 "nested func not allowed",
70 73
71 615, ';', 74 615, ';',
72 "else must be followed by if or statement block" 75 "else must be followed by if or statement block"
73 }; 76 };
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b