diff options
author | alandonovan <adonovan@google.com> | 2021-01-21 17:58:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 17:58:09 -0500 |
commit | cea917ab6e0f5d6548d516f8c30e197d63db9baa (patch) | |
tree | 899c6a22cc01630d69f93cb014987daed5e98208 /cmd/starlark/starlark.go | |
parent | fb04d37e5d7fe9cdcc59adfcfd94d1863ac6cb38 (diff) | |
download | starlark-go-cea917ab6e0f5d6548d516f8c30e197d63db9baa.tar.gz |
resolver: make -nesteddef and -lambda always on (#328)
See https://github.com/bazelbuild/starlark/pull/145
for spec changes.
Updates https://github.com/bazelbuild/starlark/issues/20
Diffstat (limited to 'cmd/starlark/starlark.go')
-rw-r--r-- | cmd/starlark/starlark.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd/starlark/starlark.go b/cmd/starlark/starlark.go index 31555f1..3825f00 100644 --- a/cmd/starlark/starlark.go +++ b/cmd/starlark/starlark.go @@ -38,7 +38,6 @@ func init() { flag.BoolVar(&resolve.AllowFloat, "float", resolve.AllowFloat, "obsolete; no effect") flag.BoolVar(&resolve.AllowSet, "set", resolve.AllowSet, "allow set data type") flag.BoolVar(&resolve.AllowLambda, "lambda", resolve.AllowLambda, "allow lambda expressions") - flag.BoolVar(&resolve.AllowNestedDef, "nesteddef", resolve.AllowNestedDef, "allow nested def statements") flag.BoolVar(&resolve.AllowRecursion, "recursion", resolve.AllowRecursion, "allow while statements and recursive functions") flag.BoolVar(&resolve.AllowGlobalReassign, "globalreassign", resolve.AllowGlobalReassign, "allow reassignment of globals, and if/for/while statements at top level") } |