| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of dart2js; | 5 part of dart2js; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
| 9 * compiled. | 9 * compiled. |
| 10 */ | 10 */ |
| (...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1359 progress.reset(); | 1359 progress.reset(); |
| 1360 } | 1360 } |
| 1361 backend.codegen(work); | 1361 backend.codegen(work); |
| 1362 } | 1362 } |
| 1363 | 1363 |
| 1364 FunctionSignature resolveSignature(FunctionElement element) { | 1364 FunctionSignature resolveSignature(FunctionElement element) { |
| 1365 return withCurrentElement(element, | 1365 return withCurrentElement(element, |
| 1366 () => resolver.resolveSignature(element)); | 1366 () => resolver.resolveSignature(element)); |
| 1367 } | 1367 } |
| 1368 | 1368 |
| 1369 void resolveTypedef(TypedefElement element) { | |
| 1370 withCurrentElement(element, | |
| 1371 () => resolver.resolve(element)); | |
| 1372 } | |
| 1373 | |
| 1374 void reportError(Spannable node, | 1369 void reportError(Spannable node, |
| 1375 MessageKind messageKind, | 1370 MessageKind messageKind, |
| 1376 [Map arguments = const {}]) { | 1371 [Map arguments = const {}]) { |
| 1377 reportDiagnosticInternal( | 1372 reportDiagnosticInternal( |
| 1378 node, messageKind, arguments, api.Diagnostic.ERROR); | 1373 node, messageKind, arguments, api.Diagnostic.ERROR); |
| 1379 } | 1374 } |
| 1380 | 1375 |
| 1381 void reportFatalError(Spannable node, MessageKind messageKind, | 1376 void reportFatalError(Spannable node, MessageKind messageKind, |
| 1382 [Map arguments = const {}]) { | 1377 [Map arguments = const {}]) { |
| 1383 reportError(node, messageKind, arguments); | 1378 reportError(node, messageKind, arguments); |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1806 static NullSink outputProvider(String name, String extension) { | 1801 static NullSink outputProvider(String name, String extension) { |
| 1807 return new NullSink('$name.$extension'); | 1802 return new NullSink('$name.$extension'); |
| 1808 } | 1803 } |
| 1809 } | 1804 } |
| 1810 | 1805 |
| 1811 /// Information about suppressed warnings and hints for a given library. | 1806 /// Information about suppressed warnings and hints for a given library. |
| 1812 class SuppressionInfo { | 1807 class SuppressionInfo { |
| 1813 int warnings = 0; | 1808 int warnings = 0; |
| 1814 int hints = 0; | 1809 int hints = 0; |
| 1815 } | 1810 } |
| OLD | NEW |