lang: Rephrase the scope building log messages
This commit is contained in:
@@ -3480,7 +3480,7 @@ func (obj *StmtProg) importSystemScope(name string) (*interfaces.Scope, error) {
|
|||||||
return nil, errwrap.Wrapf(err, "could not interpolate AST from import `%s`", name)
|
return nil, errwrap.Wrapf(err, "could not interpolate AST from import `%s`", name)
|
||||||
}
|
}
|
||||||
|
|
||||||
obj.data.Logf("building scope...")
|
obj.data.Logf("scope building...")
|
||||||
// propagate the scope down through the AST...
|
// propagate the scope down through the AST...
|
||||||
// most importantly, we ensure that the child imports will run!
|
// most importantly, we ensure that the child imports will run!
|
||||||
// we pass in *our* parent scope, which will include the globals
|
// we pass in *our* parent scope, which will include the globals
|
||||||
@@ -3619,7 +3619,7 @@ func (obj *StmtProg) importScopeWithParsedInputs(input *inputs.ParsedInput, scop
|
|||||||
return nil, errwrap.Wrapf(err, "could not interpolate AST from import")
|
return nil, errwrap.Wrapf(err, "could not interpolate AST from import")
|
||||||
}
|
}
|
||||||
|
|
||||||
logf("building scope...")
|
logf("scope building...")
|
||||||
// propagate the scope down through the AST...
|
// propagate the scope down through the AST...
|
||||||
// most importantly, we ensure that the child imports will run!
|
// most importantly, we ensure that the child imports will run!
|
||||||
// we pass in *our* parent scope, which will include the globals
|
// we pass in *our* parent scope, which will include the globals
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ func (obj *GAPI) Cli(info *gapi.Info) (*gapi.Deploy, error) {
|
|||||||
Functions: ast.FuncPrefixToFunctionsScope(""), // runs funcs.LookupPrefix
|
Functions: ast.FuncPrefixToFunctionsScope(""), // runs funcs.LookupPrefix
|
||||||
}
|
}
|
||||||
|
|
||||||
logf("building scope...")
|
logf("scope building...")
|
||||||
// propagate the scope down through the AST...
|
// propagate the scope down through the AST...
|
||||||
// We use SetScope because it follows all of the imports through. I did
|
// We use SetScope because it follows all of the imports through. I did
|
||||||
// not think we needed to pass in an initial scope because the download
|
// not think we needed to pass in an initial scope because the download
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ func (obj *Lang) Init() error {
|
|||||||
Functions: ast.FuncPrefixToFunctionsScope(""), // runs funcs.LookupPrefix
|
Functions: ast.FuncPrefixToFunctionsScope(""), // runs funcs.LookupPrefix
|
||||||
}
|
}
|
||||||
|
|
||||||
obj.Logf("building scope...")
|
obj.Logf("scope building...")
|
||||||
// propagate the scope down through the AST...
|
// propagate the scope down through the AST...
|
||||||
if err := obj.ast.SetScope(scope); err != nil {
|
if err := obj.ast.SetScope(scope); err != nil {
|
||||||
return errwrap.Wrapf(err, "could not set scope")
|
return errwrap.Wrapf(err, "could not set scope")
|
||||||
|
|||||||
Reference in New Issue
Block a user