Files
sdk/compiler/java/com/google/dart/compiler/ErrorCode.java
T
scheglov@google.com ecbd1874bf Recompile unit with potential conflict/dependency on some top-level symbol.
1. Change dependency tracking from API version on unit to just unit last modified time.

2. Track sets of top-level and all declared symbols in units, recompile in case of possible conflict.

3. Track units with TypeErrorCode.CANNOT_BE_RESOLVED, recompile if any unit changes top-level symbols.

4. Better tests with source code directly in test method.

R=zundel@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9148026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3799 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-01 17:47:04 +00:00

32 lines
946 B
Java

// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler;
/**
* The behavior common to objects representing error codes associated with
* {@link DartCompilationError Dart compilation errors}.
*/
public interface ErrorCode {
/**
* Return the message template used to create the message to be displayed for this error.
*/
String getMessage();
/**
* @return the {@link ErrorSeverity} of this error.
*/
ErrorSeverity getErrorSeverity();
/**
* @return the {@link SubSystem} which issued this error.
*/
SubSystem getSubSystem();
/**
* @return <code>true</code> if this {@link ErrorCode} should cause recompilation of the source
* during next incremental compilation.
*/
boolean needsRecompilation();
}