f1627fed2b
This change creates a new mu/pkg/compiler/core package for any fundamental compiler types that need to be shared among the various compiler packages (.../compiler, .../compiler/clouds/..., and .../compiler/schedulers/...). This avoids package cycles.
14 lines
265 B
Go
14 lines
265 B
Go
// Copyright 2016 Marapongo, Inc. All rights reserved.
|
|
|
|
package core
|
|
|
|
import (
|
|
"github.com/marapongo/mu/pkg/diag"
|
|
)
|
|
|
|
// Phase represents a compiler phase.
|
|
type Phase interface {
|
|
// Diag fetches the diagnostics sink used by this compiler pass.
|
|
Diag() diag.Sink
|
|
}
|