Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: dart_vm_standalone/rasta_errors.dart

Issue 2205263002: Implement fall-through errors. (Closed) Base URL: git@github.com:dart-lang/rasta.git@errors
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | lib/kernel.dart » ('j') | lib/kernel/fall_through_visitor.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 library dart.core._rasta_errors; 4 library dart.core._rasta_errors;
5 5
6 // RastaK generates calls to these methods -- all backends must provide them 6 // RastaK generates calls to these methods -- all backends must provide them
7 // in their patch for "dart:core". 7 // in their patch for "dart:core".
8 // 8 //
9 // In the future, we could have a single `rasta_errors.dart` for all backends to 9 // In the future, we could have a single `rasta_errors.dart` for all backends to
10 // ensure consistent error messages across all backends. 10 // ensure consistent error messages across all backends.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 List arguments, 177 List arguments,
178 Map<Symbol, dynamic> namedArguments, 178 Map<Symbol, dynamic> namedArguments,
179 List existingArgumentNames) { 179 List existingArgumentNames) {
180 return new NoSuchMethodError(receiver, methodName, arguments, namedArguments, 180 return new NoSuchMethodError(receiver, methodName, arguments, namedArguments,
181 existingArgumentNames); 181 existingArgumentNames);
182 } 182 }
183 183
184 _malformedTypeError(String errorMessage) { 184 _malformedTypeError(String errorMessage) {
185 return new _TypeError._create(null, null, null, errorMessage); 185 return new _TypeError._create(null, null, null, errorMessage);
186 } 186 }
187
188 _fallThroughError() {
189 return new FallThroughError();
190 }
OLDNEW
« no previous file with comments | « no previous file | lib/kernel.dart » ('j') | lib/kernel/fall_through_visitor.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698