This change lays some groundwork that registers symbols when doing semantic analysis of the resulting AST. For now, that just entails detecting duplicate services by way of symbol registration. Note that we've also split binding into two phases to account for the fact that intra-stack dependencies are wholly legal.
12 lines
231 B
Go
12 lines
231 B
Go
// Copyright 2016 Marapongo, Inc. All rights reserved.
|
|
|
|
package errors
|
|
|
|
import (
|
|
"github.com/marapongo/mu/pkg/diag"
|
|
)
|
|
|
|
var SymbolAlreadyExists = &diag.Diag{
|
|
ID: 500,
|
|
Message: "A symbol already exists with the name '%v'",
|
|
}
|