Home
last modified time | relevance | path

Searched refs:Pos (Results 1 – 17 of 17) 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.go46 StringPos Pos
51 func SimpleMakeString(s string, pos Pos) *MakeString { argument
63 func (ms *MakeString) Pos() Pos { func
67 func (ms *MakeString) End() Pos {
72 return Pos(int(pos) + len(ms.Strings[len(ms.Strings)-1]))
158 word := SimpleMakeString("", ms.Pos())
206 word = SimpleMakeString("", ms.Pos())
229 curMs := SimpleMakeString("", ms.Pos())
247 curMs = SimpleMakeString(r, ms.Pos())
265 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,
247 func (p *parser) parseDefine() (*MakeString, Pos) {
391 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
88 func (m *Module) Pos() scanner.Position { return m.TypePos } func
131 func (p *Property) Pos() scanner.Position { return p.NamePos } func
238 func (x *Operator) Pos() scanner.Position { return x.Args[0].Pos() } func
252 func (x *Variable) Pos() scanner.Position { return x.NamePos } func
276 func (x *Map) Pos() scanner.Position { return x.LBracePos } func
370 func (x *List) Pos() scanner.Position { return x.LBracePos } func
402 func (x *String) Pos() scanner.Position { return x.LiteralPos } func
428 func (x *Int64) Pos() scanner.Position { return x.LiteralPos } func
[all …]
Dprinter.go226 p.printToken(unset.String(), unset.Pos())
289 if operator.Args[0].End().Line == operator.Args[1].Pos().Line {
342 for p.curComment < len(p.comments) && p.comments[p.curComment].Pos().Offset < pos.Offset {
364 for p.curComment < len(p.comments) && p.comments[p.curComment].Pos().Line < pos.Line {
433 if !p.requestNewlinesForPos(comment.Pos()) {
458 if !p.requestNewlinesForPos(c.Pos()) {
Dmodify.go66 pos := list.Values[i].Pos()
Dparser.go35 Pos scanner.Position member
39 return fmt.Sprintf("%s: %s", e.Pos, e.Err)
48 func (f *File) Pos() scanner.Position { func
137 pos = p.scanner.Pos()
141 Pos: pos,
Dparser_test.go1304 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)
320 property.Value.Pos(),
353 property.Value.Pos(),
373 property.Value.Pos(),
393 property.Value.Pos(),
488 c.Value.Pos(),
531 property.Value.Pos(),
547 property.Value.Pos(),
581 property.Value.Pos(),
[all …]
/build/soong/makedeps/
Ddeps.go42 return p.Unpack(node.Pos()).String() + ": "
/build/blueprint/
Dcontext.go225 Pos scanner.Position // the relevant Blueprints file location member
243 return fmt.Sprintf("%s: %s", e.Pos, e.Err)
247 return fmt.Sprintf("%s: %s: %s", e.Pos, e.module, e.Err)
251 return fmt.Sprintf("%s: %s: %s: %s", e.Pos, e.module, e.property, e.Err)
1233 Pos: parseErr.Pos,
1253 Pos: buildPos,
1291 Pos: buildPos,
1299 Pos: buildPos,
1307 Pos: buildPos,
1333 Pos: subdirsPos,
[all …]
Dmodule_ctx.go455 Pos: pos,
530 Pos: module.pos,
/build/soong/bpfix/bpfix/
Dbpfix.go857 patchList.Add(item.Pos().Offset, item.End().Offset+2, "")
870 patchList.Add(prop.Pos().Offset, prop.End().Offset+2, "")
1016 stage += string(buf[prop.Pos().Offset : prop.End().Offset+1])
1018 err := patchlist.Add(prop.Pos().Offset, prop.End().Offset+2, "")
1106 return patchlist.Add(prop.Pos().Offset, prop.End().Offset+2, replaceStr)
1138 if err := patchList.Add(propToRemove.Pos().Offset, propToRemove.End().Offset+2, ""); err != nil {
1272 patchList.Add(item.Pos().Offset, item.End().Offset+2, "")
1297 patchList.Add(legacyProp.Pos().Offset, legacyProp.End().Offset+2, "")
1436 err := patchlist.Add(curValue.Pos().Offset, curValue.End().Offset+2, "")
1442 err = patchlist.Add(nextValue.Pos().Offset, nextValue.End().Offset+1, value)
[all …]
/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/mk2rbc/
Dmk2rbc.go471 nodeLocator func(pos mkparser.Pos) int
1286 args = mkparser.SimpleMakeString("", words[0].Pos())
1298 args = mkparser.SimpleMakeString("", words[0].Pos())
1912 ctx.script.nodeLocator = func(pos mkparser.Pos) int {
1913 return oldNodeLocator(node.Pos())
2172 return ErrorLocation{ctx.script.mkFile, ctx.script.nodeLocator(node.Pos())}
2218 nodeLocator: func(pos mkparser.Pos) int { return parser.Unpack(pos).Line },
/build/soong/android/
Dsoong_config_modules.go422 ctx.Errorf(parseErr.Pos, "%s", parseErr.Err)