Added scope package
This commit is contained in:
parent
fd66296826
commit
8e725da9c6
37 changed files with 416 additions and 371 deletions
8
src/build/core/VariableByName.go
Normal file
8
src/build/core/VariableByName.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package core
|
||||
|
||||
import "git.akyoto.dev/cli/q/src/build/scope"
|
||||
|
||||
// VariableByName returns the variable with the given name or `nil` if it doesn't exist.
|
||||
func (f *Function) VariableByName(name string) *scope.Variable {
|
||||
return f.CurrentScope().Variables[name]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue