4c9be10f18
Review URL: https://chromereviews.googleplex.com/3578016 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@253 260f80e4-7a28-3924-810f-c04153c831b5
24 lines
755 B
Java
24 lines
755 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;
|
|
|
|
import com.google.dart.compiler.ast.DartUnit;
|
|
import com.google.dart.compiler.resolver.CoreTypeProvider;
|
|
|
|
/**
|
|
* A compiler phase that processes a unit and possibly transforms it or reports
|
|
* compilation errors.
|
|
*/
|
|
public interface DartCompilationPhase {
|
|
|
|
/**
|
|
* Execute this phase on a unit.
|
|
*
|
|
* @param unit the program to process
|
|
* @param context context where to report error messages
|
|
*/
|
|
DartUnit exec(DartUnit unit, DartCompilerContext context, CoreTypeProvider typeProvider);
|
|
}
|