Home
last modified time | relevance | path

Searched refs:scope (Results 1 – 24 of 24) sorted by relevance

/build/soong/androidmk/parser/
Dscope.go28 type scope struct { struct
34 func (s *scope) Get(name string) string { argument
46 func (s *scope) Set(name, value string) { argument
50 func (s *scope) Call(name string, args []string) []string { argument
58 func (s *scope) SetFunc(name string, f func([]string) []string) { argument
63 return &scope{
77 func (v Variable) EvalFunction(scope Scope) ([]string, bool) {
85 argVals[i] = a.Value(scope)
89 return scope.Call(argVals[0], argVals[1:]), true
99 func (v Variable) Value(scope Scope) string {
[all …]
Dmake_strings.go91 func (ms *MakeString) Value(scope Scope) string {
97 ret += ms.Variables[i].Value(scope)
/build/soong/java/
Dprebuilt_apis.go63 func parseJarPath(path string) (module string, apiver string, scope string) {
67 scope = elements[1]
73 …piFilePath(ctx android.LoadHookContext, path string) (module string, apiver string, scope string) {
77 scope = elements[1]
78 …if scope != "public" && scope != "system" && scope != "test" && scope != "module-lib" && scope != …
79 ctx.ModuleErrorf("invalid scope %q found in path: %q", scope, path)
88 func prebuiltApiModuleName(mctx android.LoadHookContext, module string, scope string, apiver string…
89 return mctx.ModuleName() + "_" + scope + "_" + apiver + "_" + module
92 func createImport(mctx android.LoadHookContext, module, scope, apiver, path, sdkVersion string, com… argument
100 props.Name = proptools.StringPtr(prebuiltApiModuleName(mctx, module, scope, apiver))
[all …]
Dtesting.go175 for _, scope := range []string{"public", "system", "module-lib", "system-server", "test"} {
176 fs[fmt.Sprintf("prebuilts/sdk/%s/%s/%s.jar", level, scope, lib)] = nil
179 fs[fmt.Sprintf("prebuilts/sdk/%s/%s/api/%s.txt", level, scope, lib)] = nil
180 fs[fmt.Sprintf("prebuilts/sdk/%s/%s/api/%s-removed.txt", level, scope, lib)] = nil
Dhiddenapi_modular.go586 func (s StubDexJarsByModule) addStubDexJar(ctx android.ModuleContext, module android.Module, scope
595 if name == scope.nonUpdatablePrebuiltModule || name == scope.nonUpdatableSourceModule {
629 stubDexJarsByScope[scope] = stubDexJar
660 func (s StubDexJarsByModule) StubDexJarsForScope(scope *HiddenAPIScope) android.Paths {
666 if jars, ok := stubDexJarsByScope[scope]; ok {
/build/blueprint/
Dninja_defs.go104 func parsePoolParams(scope scope, params *PoolParams) (*poolDef, argument
141 func parseRuleParams(scope scope, params *RuleParams) (*ruleDef, argument
155 if r.Pool != nil && !scope.IsPoolVisible(r.Pool) {
159 value, err := parseNinjaString(scope, params.Command)
166 value, err = parseNinjaString(scope, params.Depfile)
178 value, err = parseNinjaString(scope, params.Description)
194 value, err = parseNinjaString(scope, params.Rspfile)
202 value, err = parseNinjaString(scope, params.RspfileContent)
211 value, err = parseNinjaString(scope, strings.Join(params.SymlinkOutputs, " "))
219 r.CommandDeps, err = parseNinjaStrings(scope, params.CommandDeps)
[all …]
Dninja_strings_test.go112 scope := newLocalScope(nil, "namespace")
115 v, err := scope.LookupVariable(varName)
117 v, err = scope.AddLocalVariable(varName, "")
137 output, err := parseNinjaString(scope, testCase.input)
163 scope := newScope(nil)
164 scope.AddImport("impPkg", impScope)
167 output, err := parseNinjaString(scope, input)
194 scope := newLocalScope(nil, "")
195 scope.AddLocalVariable("a", strings.Repeat("b", l/3))
196 ns, _ := parseNinjaString(scope, strings.Repeat("a", l/3)+"${a}"+strings.Repeat("a", l/3))
[all …]
Dscope.go55 scope() *basicScope methodSpec
79 scope := newScope(parent)
81 _, err := scope.LookupVariable(argName)
84 err = scope.AddVariable(arg)
97 err := scope.AddVariable(arg)
103 return scope
252 scope *basicScope member
258 scope: newScope(parent),
267 s.scope.parent = pctx.getScope()
271 return s.scope.LookupVariable(name)
[all …]
Dpackage_ctx.go80 scope *basicScope member
87 return p.scope
116 scope: newScope(nil),
225 err := p.scope.AddImport(importPkg.shortName, importPkg.scope)
246 err = p.scope.AddImport(as, importPkg.scope)
280 err = p.scope.AddVariable(v)
308 ninjaStr, err := parseNinjaString(v.pctx.scope, v.value_)
353 err = p.scope.AddVariable(v)
396 err = p.scope.AddVariable(v)
429 ninjaStr, err := parseNinjaString(v.pctx.scope, value)
[all …]
Dninja_strings.go52 type scope interface { interface
63 scope scope member
95 func parseNinjaString(scope scope, str string) (ninjaString, error) { argument
110 scope: scope,
197 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
210 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
225 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
251 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
270 func parseNinjaStrings(scope scope, strs []string) ([]ninjaString, argument
278 ninjaStr, err := parseNinjaString(scope, str)
Dsingleton_ctx.go168 scope *localScope member
236 s.scope.ReparentTo(pctx)
238 v, err := s.scope.AddLocalVariable(name, value)
249 s.scope.ReparentTo(pctx)
251 r, err := s.scope.AddLocalRule(name, &params, argNames...)
262 s.scope.ReparentTo(pctx)
264 def, err := parseBuildParams(s.scope, &params)
273 s.scope.ReparentTo(pctx)
275 ninjaStr, err := parseNinjaString(s.scope, str)
293 s.scope.ReparentTo(pctx)
[all …]
Dmodule_ctx.go482 scope *localScope member
741 m.scope.ReparentTo(pctx)
743 v, err := m.scope.AddLocalVariable(name, value)
754 m.scope.ReparentTo(pctx)
756 r, err := m.scope.AddLocalRule(name, &params, argNames...)
767 m.scope.ReparentTo(pctx)
769 def, err := parseBuildParams(m.scope, &params)
1389 scope := parser.NewScope(nil)
1390 file, errs := parser.Parse(filename, strings.NewReader(contents), scope)
Dcontext.go1032 func (c *Context) openAndParse(filename string, scope *parser.Scope, rootDir string,
1065 file, subBlueprints, errs = c.parseOne(rootDir, filename, f, scope, parent)
1091scope *parser.Scope, parent *fileParseContext) (file *parser.File, subBlueprints []fileParseContex…
1098 scope.Remove("subdirs")
1099 scope.Remove("optional_subdirs")
1100 scope.Remove("build")
1101 file, errs = parser.ParseAndEval(filename, reader, scope)
1119 build, buildPos, err := getLocalStringListFromScope(scope, "build")
1132 subBlueprintsName, _, err := getStringFromScope(scope, "subname")
1149 …subBlueprintsAndScope[i] = fileParseContext{b, parser.NewScope(scope), parent, make(chan struct{})}
[all …]
DBlueprints21 "scope.go",
/build/soong/scripts/
Dgen-java-current-api-files.sh30 for scope in "${scopes[@]}"; do
32 touch "${api_dir}/${scope}${api}.txt"
/build/blueprint/parser/
Dparser.go86 func ParseAndEval(filename string, r io.Reader, scope *Scope) (file *File, errs []error) {
87 p := newParser(r, scope)
94 func Parse(filename string, r io.Reader, scope *Scope) (file *File, errs []error) {
95 p := newParser(r, scope)
105 scope *Scope member
110 func newParser(r io.Reader, scope *Scope) *parser {
112 p.scope = scope
223 if p.scope != nil {
225 if old, local := p.scope.Get(assignment.Name); old == nil {
240 err := p.scope.Add(assignment)
[all …]
Dparser_test.go1280 scope := NewScope(nil)
1282 _, errs := Parse("", bytes.NewBufferString(input), scope)
1290 assignment, found := scope.Get("FOO")
/build/soong/sysprop/
Dsysprop_library.go60 `$syspropJavaCmd --scope $scope --java-output-dir $out.tmp $in && ` +
483 scope := "internal"
489 scope = "public"
492 scope = "public"
500 Scope: scope,
/build/soong/androidmk/androidmk/
Dvalues.go72 if ret, ok := ms.Variables[i].EvalFunction(file.scope); ok {
136 if ret, ok := f.Variables[0].EvalFunction(file.scope); ok {
Dandroidmk.go38 scope mkparser.Scope member
141 scope: androidScope(),
169 module, ok := mapIncludePath(x.Args.Value(file.scope))
Dandroid.go592 class := ctx.mkvalue.Value(ctx.file.scope)
594 ctx.file.scope.Set("BUILD_PREBUILT", class)
597 ctx.file.scope.Set("BUILD_PREBUILT", "prebuilt")
/build/soong/androidmk/
DAndroid.bp58 "parser/scope.go",
/build/soong/android/soongconfig/
Dmodules.go36 scope := parser.NewScope(nil)
37 file, errs := parser.ParseAndEval(from, r, scope)
/build/make/core/
DLINUX_KERNEL_COPYING89 covered by this License; they are outside its scope. The act of
148 the scope of this License.