Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 25) sorted by relevance

/build/blueprint/parser/
Dprinter.go33 pos scanner.Position member
55 pos: scanner.Position{
139 func (p *printer) printList(list []Expression, pos, endPos scanner.Position) {
141 p.printToken("[", pos)
142 if len(list) > 1 || pos.Line != endPos.Line {
202 p.unindent(p.pos)
215 func (p *printer) printToken(s string, pos scanner.Position) {
218 if pos == noPos {
219 pos = p.pos
223 p.printEndOfLineCommentsBefore(pos)
[all …]
Dparser.go124 pos := p.scanner.Position
125 if !pos.IsValid() {
126 pos = p.scanner.Pos()
130 Pos: pos,
179 pos := p.scanner.Position
186 defs = append(defs, p.parseAssignment(ident, pos, "+="))
188 defs = append(defs, p.parseAssignment(ident, pos, "="))
190 defs = append(defs, p.parseModule(ident, pos))
210 pos := p.scanner.Position
220 assignment.EqualsPos = pos
[all …]
Dast.go428 pos := c.Slash
430 pos.Offset += len(comment) + 1
431 pos.Column = len(comment) + 1
433 pos.Line += len(c.Comment) - 1
434 return pos
505 func endPos(pos scanner.Position, n int) scanner.Position {
506 pos.Offset += n
507 pos.Column += n
508 return pos
Dsort.go132 if c.Pos().Offset > e.pos.Offset && c.Pos().Offset < e.nextPos.Offset {
134 file.Comments[j].Comments[0].Slash.Offset += values[i].Pos().Offset - e.pos.Offset
138 curPos.Offset += e.nextPos.Offset - e.pos.Offset
165 pos scanner.Position member
/build/make/tools/
Dparsedeps.py12 self.pos = ""
38 def setPos(self, tgt, pos): argument
43 t.pos = pos
98 pos,tgt = line.rsplit(":", 1)
99 pos = pos[1:].strip()
101 deps.setPos(tgt, pos)
136 if t.pos:
137 print t.tgt, " " * (width-len(t.tgt)), " #", t.pos
Dcheck_elf_file.py267 pos = name_with_version.rfind('@')
268 if pos == -1:
272 if pos > 0 and name_with_version[pos - 1] == '@':
273 name = name_with_version[0:pos - 1]
275 name = name_with_version[0:pos]
276 version = name_with_version[pos + 1:]
Dfat16copy.py646 pos = 2
647 while pos < self.fat_size / 2:
653 current = pos
659 pos += 1
/build/soong/androidmk/parser/
Dparser.go88 func (p *parser) Unpack(pos Pos) scanner.Position {
89 offset := int(pos)
99 func (p *parser) pos() Pos { func
100 pos := p.scanner.Position
101 if !pos.IsValid() {
102 pos = p.scanner.Pos()
104 return Pos(pos.Offset)
208 pos := p.pos()
212 expression := SimpleMakeString("", pos)
225 NamePos: pos,
[all …]
Dmake_strings.go39 func SimpleMakeString(s string, pos Pos) *MakeString {
41 StringPos: pos,
56 pos := ms.StringPos
58 pos = ms.Variables[len(ms.Variables)-1].End()
60 return Pos(int(pos) + len(ms.Strings[len(ms.Strings)-1]))
/build/soong/makedeps/
Ddeps.go41 pos := func(node parser.Node) string {
53 return nil, fmt.Errorf("%sunexpected recipe in rule: %v", pos(node), x)
57 return nil, fmt.Errorf("%sunsupported variable expansion: %v", pos(node), x.Target.Dump())
68 … return nil, fmt.Errorf("%sunsupported variable expansion: %v", pos(node), x.Prerequisites.Dump())
74 return nil, fmt.Errorf("%sunexpected line: %#v", pos(node), node)
/build/make/tools/releasetools/
Dsparse_img.py81 pos = 0 # in blocks
100 care_data.append(pos)
101 care_data.append(pos + chunk_sz)
102 offset_map.append((pos, chunk_sz, f.tell(), None))
103 pos += chunk_sz
108 care_data.append(pos)
109 care_data.append(pos + chunk_sz)
110 offset_map.append((pos, chunk_sz, None, fill_data))
111 pos += chunk_sz
124 care_data.append(pos)
[all …]
/build/make/tools/atree/
Dfs.cpp105 size_t pos = 0; in mkdir_recursively() local
108 if (path.length() != 0 and path[0] == '/') pos++; in mkdir_recursively()
111 pos = path.find('/', pos); in mkdir_recursively()
112 string p = path.substr(0, pos); in mkdir_recursively()
128 pos++; in mkdir_recursively()
Dfiles.cpp152 string::size_type pos = 0; in replace_variables() local
153 while((pos = result.find(it->first, pos)) != string::npos) { in replace_variables()
154 result = result.replace(pos, it->first.length(), it->second); in replace_variables()
155 pos += it->second.length(); in replace_variables()
385 int pos = filename.rfind('/'); in dir_part() local
386 if (pos <= 0) { in dir_part()
389 return filename.substr(0, pos); in dir_part()
/build/make/core/
Dchecktree24 pos = 0
26 pos = s.find(" ", pos) + 1
28 return s[pos:]
/build/soong/androidmk/androidmk/
Dandroidmk.go91 func (f *bpFile) setMkPos(pos, end scanner.Position) {
104 if pos.Line >= f.mkPos.Line {
105 f.bpPos.Line += (pos.Line - f.mkPos.Line)
396 pos := file.bpPos
414 val.(*bpparser.Operator).OperatorPos = pos
430 NamePos: pos,
443 NamePos: pos,
453 NamePos: pos,
456 EqualsPos: pos,
466 NamePos: pos,
[all …]
/build/blueprint/
Dmodule_ctx.go153 Errorf(pos scanner.Position, fmt string, args ...interface{})
387 func (d *baseModuleContext) Errorf(pos scanner.Position,
392 Pos: pos,
402 Pos: d.module.pos,
411 pos := d.module.propertyPos[property]
413 if !pos.IsValid() {
414 pos = d.module.pos
421 Pos: pos,
482 Pos: module.pos,
1040 module.pos = mctx.module.pos
[all …]
Dname_interface.go88 return &namespaceContextImpl{moduleInfo.pos.Filename}
112 " %s <-- previous definition here", name, group.modules[0].pos),
133 oldName, newName, existingGroup.modules[0].pos),
Dcontext.go183 pos scanner.Position member
1317 Pos: module.pos,
1404 module.pos = moduleDef.TypePos
1419 Pos: module.pos,
1436 errs[i] = &BlueprintError{Err: errs[i], Pos: module.pos}
1549 Pos: module.pos,
1574 Pos: module.pos,
1582 Pos: module.pos,
1591 Pos: module.pos,
1609 Pos: module.pos,
[all …]
/build/soong/symbol_inject/
Dsymbol_inject.go111 pos := int64(offset) + int64(len(buf))
113 _, err = io.Copy(w, io.NewSectionReader(r, pos, 1<<63-1-pos))
/build/make/tools/droiddoc/templates-pdk/assets/
Dandroid-developer-reference.js242 var pos = full.lastIndexOf("/");
243 file = full.substr(pos) + file;
244 full = full.substr(0, pos);
Djquery-resizable.min.js19pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(…
/build/soong/bpfix/bpfix/
Dbpfix.go880 pos := mod.LBracePos.Offset + 1
889 err := patchlist.Add(pos, pos, stage)
895 pos = mod.Properties[0].End().Offset + 1
912 err := patchlist.Add(pos, pos, stage)
/build/make/tools/droiddoc/templates-ndk/assets/js/
Dandroid_3p-bundle.js257 var pos = html.indexOf('&');
258 if (pos < 0) { return html; }
262 for (--pos; (pos = html.indexOf('&#', pos + 1)) >= 0;) {
263 var end = html.indexOf(';', pos);
265 var num = html.substring(pos + 3, end);
273 html = (html.substring(0, pos) + String.fromCharCode(codePoint) +
627 var pos = 0;
634 out.push(plainText.substring(pos, i));
644 pos = i + 1;
654 out.push(plainText.substring(pos));
[all …]
Ddocs.js3068 var pos = full.lastIndexOf("/");
3069 file = full.substr(pos) + file;
3070 full = full.substr(0, pos);
/build/soong/android/
Dmodule.go71 Errorf(pos scanner.Position, fmt string, args ...interface{})