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

Unified Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 1363993004: Report info messages together with their error, warning, or hint. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index 7c538b5906a3470fc5834d6cab81d74e086ee0e8..f56a53d1671309a549ceaef93a30487362936972 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -410,8 +410,6 @@ abstract class Element implements Entity {
Scope buildScope();
- void diagnose(Element context, DiagnosticListener listener);
-
// TODO(johnniwinther): Move this to [AstElement].
/// Returns the [Element] that holds the [TreeElements] for this element.
AnalyzableElement get analyzableElement;
@@ -820,6 +818,10 @@ abstract class AmbiguousElement extends Element {
Map get messageArguments;
Element get existingElement;
Element get newElement;
+
+ /// Compute the info messages associated with an error/warning on [context].
+ List<DiagnosticMessage> computeInfos(
+ Element context, DiagnosticListener listener);
}
// TODO(kasperl): This probably shouldn't be called an element. It's
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/diagnostic_listener.dart ('k') | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698