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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java

Issue 10659037: Issue 3839. Warn when 'dart:io' and 'dart:html' are used in single library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Report Editor specific warning as ErrorSeverity.INFO Created 8 years, 6 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: compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java b/compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java
index 054fcdd563bdbccf09c41932ff0d465926ec3bd9..58c0eea75c0248df90c49c8d166a667c7baad98e 100644
--- a/compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java
@@ -8,6 +8,8 @@ package com.google.dart.compiler;
* Valid error codes for the errors produced by the Dart compiler.
*/
public enum DartCompilerErrorCode implements ErrorCode {
+ CONSOLE_WEB_MIX(ErrorSeverity.INFO,
+ "Libraries 'dart:io' (console apps only) and 'dart:html' (web apps only) cannot be used together"),
ENTRY_POINT_METHOD_CANNOT_HAVE_PARAMETERS(ErrorSeverity.WARNING,
"Main entry point method cannot have parameters"),
ENTRY_POINT_METHOD_MAY_NOT_BE_GETTER(ErrorSeverity.WARNING,

Powered by Google App Engine
This is Rietveld 408576698