From f973009b8348d8a3f1a5bebedc2b11ae0dd25a10 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Wed, 13 Mar 2024 17:00:02 -0400 Subject: [PATCH] lang: Rephrase the scope building log messages --- lang/ast/structs.go | 4 ++-- lang/gapi/gapi.go | 2 +- lang/lang.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lang/ast/structs.go b/lang/ast/structs.go index 09af6075..2f0bd0be 100644 --- a/lang/ast/structs.go +++ b/lang/ast/structs.go @@ -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) } - obj.data.Logf("building scope...") + obj.data.Logf("scope building...") // propagate the scope down through the AST... // most importantly, we ensure that the child imports will run! // 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") } - logf("building scope...") + logf("scope building...") // propagate the scope down through the AST... // most importantly, we ensure that the child imports will run! // we pass in *our* parent scope, which will include the globals diff --git a/lang/gapi/gapi.go b/lang/gapi/gapi.go index 78c8caf0..25f31f61 100644 --- a/lang/gapi/gapi.go +++ b/lang/gapi/gapi.go @@ -245,7 +245,7 @@ func (obj *GAPI) Cli(info *gapi.Info) (*gapi.Deploy, error) { Functions: ast.FuncPrefixToFunctionsScope(""), // runs funcs.LookupPrefix } - logf("building scope...") + logf("scope building...") // propagate the scope down through the AST... // 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 diff --git a/lang/lang.go b/lang/lang.go index 28ab1617..47b97bee 100644 --- a/lang/lang.go +++ b/lang/lang.go @@ -205,7 +205,7 @@ func (obj *Lang) Init() error { Functions: ast.FuncPrefixToFunctionsScope(""), // runs funcs.LookupPrefix } - obj.Logf("building scope...") + obj.Logf("scope building...") // propagate the scope down through the AST... if err := obj.ast.SetScope(scope); err != nil { return errwrap.Wrapf(err, "could not set scope")