8 lines
263 B
Go
8 lines
263 B
Go
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().VariableByName(name)
|
|
}
|