mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-15 03:37:52 +08:00
Update comment
This commit is contained in:
parent
b6ff81693d
commit
73eb217cbb
|
@ -140,7 +140,8 @@ func (cp *Compiler) mustResolveVar(name string, p parse.Pos) Type {
|
|||
|
||||
// ResolveVar returns the type of a variable with supplied name, found in
|
||||
// current or upper scopes. If such a variable is nonexistent, a nil is
|
||||
// returned.
|
||||
// returned. When the value to resolve is not on the current scope, it is added
|
||||
// to cp.enclosed.
|
||||
func (cp *Compiler) ResolveVar(name string) Type {
|
||||
thisScope := len(cp.scopes) - 1
|
||||
for i := thisScope; i >= 0; i-- {
|
||||
|
|
Loading…
Reference in New Issue
Block a user