MCPcopy Create free account
hub / github.com/crossoverJie/gscript / SetValue

Method SetValue

left_value.go:26–34  ·  view source on GitHub ↗
(value interface{})

Source from the content-addressed store, hash-verified

24}
25
26func (l *LeftValue) SetValue(value interface{}) {
27 l.object.SetValue(l.variable, value)
28
29 // variable 是函数类型
30 funcObject, ok := value.(*stack.FuncObject)
31 if ok {
32 funcObject.SetReferenceVariable(l.variable)
33 }
34}
35
36func (l *LeftValue) GetVariable() *symbol.Variable {
37 return l.variable

Callers

nothing calls this directly

Calls 2

SetReferenceVariableMethod · 0.80
SetValueMethod · 0.65

Tested by

no test coverage detected