Lines Matching refs:scope
153 scope := newLocalScope(nil, "namespace.")
156 _, err := scope.LookupVariable(varName)
158 v, err := scope.AddLocalVariable(varName, strings.ToUpper(varName))
166 output, err := parseNinjaString(scope, testCase.input)
202 scope := newScope(nil)
203 scope.AddImport("impPkg", impScope)
206 output, err := parseNinjaString(scope, input)
277 scope := newLocalScope(nil, "")
278 scope.AddLocalVariable("abc", "abc")
279 scope.AddLocalVariable("def", "def")
280 scope.AddLocalVariable("ghi", "ghi")
281 gotNinjaStrings, gotStrings, err := parseNinjaOrSimpleStrings(scope, tt.in)
336 scope := newLocalScope(nil, "")
337 scope.AddLocalVariable("a", strings.Repeat("b", l/3))
341 _, _ = parseNinjaString(scope, strings.Repeat("a", l/3)+"${a}"+strings.Repeat("a", l/3))
348 scope := newLocalScope(nil, "")
351 scope.AddLocalVariable("a"+strconv.Itoa(i), strings.Repeat("b", 10))
357 _, _ = parseNinjaString(scope, str)
379 scope := newLocalScope(nil, "")
380 scope.AddLocalVariable("a", strings.Repeat("b", l/3))
381 ns, _ := parseNinjaString(scope, strings.Repeat("a", l/3)+"${a}"+strings.Repeat("a", l/3))
392 scope := newLocalScope(nil, "")
395 scope.AddLocalVariable("a"+strconv.Itoa(i), strings.Repeat("b", 10))
398 ns, _ := parseNinjaString(scope, str)