Lines Matching refs:v

274 	v := &staticVariable{p, name, value}
275 err = p.scope.AddVariable(v)
280 return v
283 func (v *staticVariable) packageContext() *packageContext {
284 return v.pctx
287 func (v *staticVariable) name() string {
288 return v.name_
291 func (v *staticVariable) fullName(pkgNames map[*packageContext]string) string {
292 return packageNamespacePrefix(pkgNames[v.pctx]) + v.name_
295 func (v *staticVariable) value(interface{}) (ninjaString, error) {
296 ninjaStr, err := parseNinjaString(v.pctx.scope, v.value_)
298 err = fmt.Errorf("error parsing variable %s value: %s", v, err)
304 func (v *staticVariable) String() string {
305 return v.pctx.pkgPath + "." + v.name_
335 v := &variableFunc{p, name, f}
336 err = p.scope.AddVariable(v)
341 return v
374 v := &variableFunc{p, name, fun}
375 err = p.scope.AddVariable(v)
380 return v
383 func (v *variableFunc) packageContext() *packageContext {
384 return v.pctx
387 func (v *variableFunc) name() string {
388 return v.name_
391 func (v *variableFunc) fullName(pkgNames map[*packageContext]string) string {
392 return packageNamespacePrefix(pkgNames[v.pctx]) + v.name_
395 func (v *variableFunc) value(config interface{}) (ninjaString, error) {
396 value, err := v.value_(config)
401 ninjaStr, err := parseNinjaString(v.pctx.scope, value)
403 err = fmt.Errorf("error parsing variable %s value: %s", v, err)
410 func (v *variableFunc) String() string {
411 return v.pctx.pkgPath + "." + v.name_
443 func (v *argVariable) packageContext() *packageContext {
447 func (v *argVariable) name() string {
448 return v.name_
451 func (v *argVariable) fullName(pkgNames map[*packageContext]string) string {
452 return v.name_
455 func (v *argVariable) value(config interface{}) (ninjaString, error) {
459 func (v *argVariable) String() string {
460 return "<arg>:" + v.name_