Home
last modified time | relevance | path

Searched refs:Pos (Results 1 – 15 of 15) sorted by relevance

/build/soong/androidmk/parser/
Dast.go17 type Pos int type
19 const NoPos Pos = 0
23 Pos() Pos methodSpec
24 End() Pos
42 func (x *Assignment) Pos() Pos { func
44 return x.Target.Pos()
46 return x.Name.Pos()
49 func (x *Assignment) End() Pos { return x.Value.End() }
52 CommentPos Pos
60 func (x *Comment) Pos() Pos { return x.CommentPos } func
[all …]
Dmake_strings.go36 StringPos Pos
41 func SimpleMakeString(s string, pos Pos) *MakeString { argument
53 func (ms *MakeString) Pos() Pos { func
57 func (ms *MakeString) End() Pos {
62 return Pos(int(pos) + len(ms.Strings[len(ms.Strings)-1]))
148 word := SimpleMakeString("", ms.Pos())
196 word = SimpleMakeString("", ms.Pos())
219 curMs := SimpleMakeString("", ms.Pos())
237 curMs = SimpleMakeString(r, ms.Pos())
255 ms.StringPos += Pos(len(ms.Strings[0]) - l)
Dparser.go31 Pos scanner.Position member
35 return fmt.Sprintf("%s: %s", e.Pos, e.Err)
88 func (p *parser) Unpack(pos Pos) scanner.Position {
99 func (p *parser) pos() Pos {
102 pos = p.scanner.Pos()
104 return Pos(pos.Offset)
110 Pos: p.scanner.Position,
246 func (p *parser) parseDefine() (*MakeString, Pos) {
393 func (p *parser) parseBracketedVariable(start, end rune, pos Pos) Variable {
/build/blueprint/parser/
Dsort.go136 line := list.Values[i].Pos().Line
139 if list.Values[j].Pos().Line > line+1 {
142 line = list.Values[j].Pos().Line
147 nextPos = list.Values[j].Pos()
157 line := list.Values[i].Pos().Line
160 if list.Values[j].Pos().Line > line+1 {
163 line = list.Values[j].Pos().Line
203 n = values[i+1].Pos()
205 l[i] = elem{s.Value, i, v.Pos(), n}
224 curPos := values[0].Pos()
[all …]
Dast.go25 Pos() scanner.Position methodSpec
53 func (a *Assignment) Pos() scanner.Position { return a.NamePos } func
86 func (m *Module) Pos() scanner.Position { return m.TypePos } func
107 func (p *Property) Pos() scanner.Position { return p.NamePos } func
211 func (x *Operator) Pos() scanner.Position { return x.Args[0].Pos() } func
225 func (x *Variable) Pos() scanner.Position { return x.NamePos } func
249 func (x *Map) Pos() scanner.Position { return x.LBracePos } func
307 func (x *List) Pos() scanner.Position { return x.LBracePos } func
339 func (x *String) Pos() scanner.Position { return x.LiteralPos } func
365 func (x *Int64) Pos() scanner.Position { return x.LiteralPos } func
[all …]
Dprinter.go185 if operator.Args[0].End().Line == operator.Args[1].Pos().Line {
238 for p.curComment < len(p.comments) && p.comments[p.curComment].Pos().Offset < pos.Offset {
260 for p.curComment < len(p.comments) && p.comments[p.curComment].Pos().Line < pos.Line {
329 if !p.requestNewlinesForPos(comment.Pos()) {
352 if !p.requestNewlinesForPos(c.Pos()) {
Dparser.go33 Pos scanner.Position member
37 return fmt.Sprintf("%s: %s", e.Pos, e.Err)
46 func (f *File) Pos() scanner.Position { func
126 pos = p.scanner.Pos()
130 Pos: pos,
Dparser_test.go1263 nextPos[i] = mod.Properties[i+1].Pos()
/build/blueprint/proptools/
Dunpack.go32 Pos scanner.Position member
36 return fmt.Sprintf("%s: %s", e.Pos, e.Err)
287 property.Value.Pos(),
321 property.Value.Pos(),
404 property.Value.Pos(),
415 property.Value.Pos(),
426 property.Value.Pos(),
/build/blueprint/
Dcontext.go142 Pos scanner.Position // the relevant Blueprints file location member
160 return fmt.Sprintf("%s: %s", e.Pos, e.Err)
164 return fmt.Sprintf("%s: %s: %s", e.Pos, e.module, e.Err)
168 return fmt.Sprintf("%s: %s: %s: %s", e.Pos, e.module, e.property, e.Err)
1107 Pos: parseErr.Pos,
1127 Pos: buildPos,
1170 Pos: buildPos,
1178 Pos: buildPos,
1186 Pos: buildPos,
1212 Pos: subdirsPos,
[all …]
Dmodule_ctx.go424 Pos: pos,
434 Pos: d.module.pos,
453 Pos: pos,
514 Pos: module.pos,
/build/soong/bpfix/bpfix/
Dbpfix.go788 patchList.Add(item.Pos().Offset, item.End().Offset+2, "")
801 patchList.Add(prop.Pos().Offset, prop.End().Offset+2, "")
927 stage += string(buf[prop.Pos().Offset : prop.End().Offset+1])
929 err := patchlist.Add(prop.Pos().Offset, prop.End().Offset+2, "")
1017 return patchlist.Add(prop.Pos().Offset, prop.End().Offset+2, replaceStr)
1034 return patchlist.Add(pdkProp.Pos().Offset, pdkProp.End().Offset+2, "")
1036 return patchlist.Add(prop.Pos().Offset, prop.End().Offset+2, "")
1143 patchList.Add(item.Pos().Offset, item.End().Offset+2, "")
1168 patchList.Add(legacyProp.Pos().Offset, legacyProp.End().Offset+2, "")
/build/soong/makedeps/
Ddeps.go42 return p.Unpack(node.Pos()).String() + ": "
/build/soong/androidmk/androidmk/
Dandroidmk.go152 file.setMkPos(p.Unpack(node.Pos()), p.Unpack(node.End()))
335 armModeAssign.Name = mkparser.SimpleMakeString("LOCAL_ARM_MODE_HACK_arm", assignment.Name.Pos())
/build/soong/android/
Dsoong_config_modules.go368 ctx.Errorf(parseErr.Pos, "%s", parseErr.Err)