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

Side by Side Diff: dart/tests/compiler/dart2js/diagnose_ambiguous_test.dart

Issue 20742002: Clean up error handling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added documentation guide lines. Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 import 'memory_source_file_helper.dart'; 6 import 'memory_source_file_helper.dart';
7 7
8 import '../../../sdk/lib/_internal/compiler/compiler.dart' 8 import '../../../sdk/lib/_internal/compiler/compiler.dart'
9 show Diagnostic; 9 show Diagnostic;
10 10
(...skipping 30 matching lines...) Expand all
41 'memory:library.dart:30:34:Info: "function(fisk)" is (re)exported by ' 41 'memory:library.dart:30:34:Info: "function(fisk)" is (re)exported by '
42 'multiple libraries.:info', 42 'multiple libraries.:info',
43 'memory:library.dart:41:45:Info: "function(hest)" is defined here.' 43 'memory:library.dart:41:45:Info: "function(hest)" is defined here.'
44 ':info', 44 ':info',
45 'memory:main.dart:0:22:Info: "class(Fisk)" is imported here.:info', 45 'memory:main.dart:0:22:Info: "class(Fisk)" is imported here.:info',
46 'memory:main.dart:0:22:Info: "function(fisk)" is imported here.:info', 46 'memory:main.dart:0:22:Info: "function(fisk)" is imported here.:info',
47 'memory:main.dart:0:22:Info: "function(hest)" is imported here.:info', 47 'memory:main.dart:0:22:Info: "function(hest)" is imported here.:info',
48 'memory:main.dart:23:46:Info: "class(Fisk)" is imported here.:info', 48 'memory:main.dart:23:46:Info: "class(Fisk)" is imported here.:info',
49 'memory:main.dart:23:46:Info: "function(fisk)" is imported here.:info', 49 'memory:main.dart:23:46:Info: "function(fisk)" is imported here.:info',
50 'memory:main.dart:23:46:Info: "function(hest)" is imported here.:info', 50 'memory:main.dart:23:46:Info: "function(hest)" is imported here.:info',
51 'memory:main.dart:59:63:Warning: duplicate import of Fisk:warning', 51 'memory:main.dart:59:63:Warning: Duplicate import of "Fisk".:warning',
52 'memory:main.dart:76:80:duplicate import of fisk:error', 52 'memory:main.dart:76:80:Error: Duplicate import of "fisk".:error',
53 'memory:main.dart:86:90:duplicate import of hest:error' 53 'memory:main.dart:86:90:Error: Duplicate import of "hest".:error'
54 ]; 54 ];
55 Expect.listEquals(expected, diagnostics); 55 Expect.listEquals(expected, diagnostics);
56 Expect.isTrue(compiler.compilationFailed); 56 Expect.isTrue(compiler.compilationFailed);
57 } 57 }
58 58
59 const Map MEMORY_SOURCE_FILES = const { 59 const Map MEMORY_SOURCE_FILES = const {
60 'main.dart': """ 60 'main.dart': """
61 import 'library.dart'; 61 import 'library.dart';
62 import 'exporter.dart'; 62 import 'exporter.dart';
63 63
(...skipping 14 matching lines...) Expand all
78 hest() {} 78 hest() {}
79 """, 79 """,
80 'exporter.dart': """ 80 'exporter.dart': """
81 library exporter; 81 library exporter;
82 82
83 export 'library.dart'; 83 export 'library.dart';
84 84
85 hest() {} 85 hest() {}
86 """, 86 """,
87 }; 87 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698