Home
last modified time | relevance | path

Searched refs:Position (Results 1 – 23 of 23) sorted by relevance

/build/make/tools/product_config/test/com/android/build/config/
DPositionTest.java28 final Position pos = Position.parse(""); in testParseEmpty()
31 Assert.assertEquals(Position.NO_LINE, pos.getLine()); in testParseEmpty()
36 final Position pos = Position.parse("asdf"); in testParseOnlyFile()
39 Assert.assertEquals(Position.NO_LINE, pos.getLine()); in testParseOnlyFile()
44 final Position pos = Position.parse("asdf:1"); in testParseBoth()
52 final Position pos = Position.parse("asdf:"); in testParseEndsWithColon()
55 Assert.assertEquals(Position.NO_LINE, pos.getLine()); in testParseEndsWithColon()
60 final Position pos = Position.parse("asdf: "); in testParseEndsWithSpace()
63 Assert.assertEquals(Position.NO_LINE, pos.getLine()); in testParseEndsWithSpace()
DErrorReporterTest.java33 errors.ERROR.add(new Position("a", 12), "Errrororrrr"); in testAdding()
/build/blueprint/parser/
Dast.go25 Pos() scanner.Position
27 End() scanner.Position
41 NamePos scanner.Position
44 EqualsPos scanner.Position
53 func (a *Assignment) Pos() scanner.Position { return a.NamePos }
54 func (a *Assignment) End() scanner.Position { return a.Value.End() }
61 TypePos scanner.Position
86 func (m *Module) Pos() scanner.Position { return m.TypePos }
87 func (m *Module) End() scanner.Position { return m.Map.End() }
92 NamePos scanner.Position
[all …]
Dparser.go33 Pos scanner.Position
46 func (f *File) Pos() scanner.Position {
47 return scanner.Position{
55 func (f *File) End() scanner.Position {
132 pos := p.scanner.Position
169 if len(comments) > 0 && p.scanner.Position.Line > comments[len(comments)-1].End().Line+1 {
173 comments = append(comments, &Comment{lines, p.scanner.Position})
187 pos := p.scanner.Position
213 func (p *parser) parseAssignment(name string, namePos scanner.Position,
218 pos := p.scanner.Position
[all …]
Dprinter.go25 var noPos scanner.Position
33 pos scanner.Position
55 pos: scanner.Position{
139 func (p *printer) printList(list []Expression, pos, endPos scanner.Position) {
215 func (p *printer) printToken(s string, pos scanner.Position) {
237 func (p *printer) printInLineCommentsBefore(pos scanner.Position) {
252 func (p *printer) printEndOfLineCommentsBefore(pos scanner.Position) {
270 func (p *printer) requestNewlinesForPos(pos scanner.Position) bool {
379 func (p *printer) unindent(pos scanner.Position) {
Dsort.go191 func sortSubList(values []Expression, nextPos scanner.Position, file *File) { argument
262 pos scanner.Position
263 nextPos scanner.Position
Dparser_test.go26 func mkpos(offset, line, column int) scanner.Position {
27 return scanner.Position{
1399 nextPos := make([]scanner.Position, len(mod.Properties))
/build/make/tools/product_config/src/com/android/build/config/
DPosition.java25 public class Position implements Comparable<Position> { class
37 public Position() { in Position() method in Position
42 public Position(String file) { in Position() method in Position
47 public Position(String file, int line) { in Position() method in Position
56 public int compareTo(Position that) { in compareTo()
76 public static Position parse(String str) { in parse()
79 return new Position(); in parse()
96 return new Position(filename, line); in parse()
DStr.java27 private Position mPosition;
31 mPosition = new Position(); in Str()
34 public Str(Position pos, String s) { in Str()
48 public Position getPosition() { in getPosition()
75 public static ArrayList<Str> toList(Position pos, List<String> list) { in toList()
DDumpConfigParser.java100 new Position(mFilename, line.getLine()), in parseImpl()
110 new Position(mFilename), in parseImpl()
139 new Position(mFilename, line.getLine()), in parseImpl()
162 new Position(mFilename, line.getLine()), in parseImpl()
171 new Position(mFilename, line.getLine()), in parseImpl()
186 new Position(mFilename, line.getLine()), in parseImpl()
205 new Position(mFilename, line.getLine()), in parseImpl()
212 new Position(mFilename, line.getLine()), in parseImpl()
231 final Position pos = Position.parse(fields.get(5)); in parseImpl()
241 new Position(mFilename, line.getLine()), in parseImpl()
[all …]
DErrorReporter.java145 ErrorReporter.this.add(this, false, new Position(), message); in add()
151 public void add(Position pos, String message) { in add()
160 ErrorReporter.this.add(this, true, new Position(), message); in fatal()
166 public void fatal(Position pos, String message) { in fatal()
176 private final Position mPosition;
179 Entry(Category category, Position position, String message) { in Entry()
189 public Position getPosition() { in getPosition()
242 private void add(Category category, boolean fatal, Position pos, String message) { in add()
DValue.java205 public List<Position> getPositions() { in getPositions()
206 List<Position> result = new ArrayList(); in getPositions()
DKatiImpl.java100 mErrors.ERROR_KATI.add(new Position(csvPath, ex.getLine()), in loadProductConfig()
DFlattenConfig.java433 Position position = previous.getPosition(); in flattenAssignList()
442 final Position pos = item.getPosition(); in flattenAssignList()
DMakeWriter.java81 Position pos = null; in writeAssign()
/build/soong/androidmk/parser/
Dparser.go31 Pos scanner.Position
88 func (p *parser) Unpack(pos Pos) scanner.Position {
91 return scanner.Position{
100 pos := p.scanner.Position
110 Pos: p.scanner.Position,
138 p.lines = append(p.lines, p.scanner.Position.Offset+1)
/build/soong/androidmk/androidmk/
Dandroidmk.go41 mkPos scanner.Position // Position of the last handled line in the makefile
42 bpPos scanner.Position // Position of the last emitted line to the blueprint file
107 func (f *bpFile) setMkPos(pos, end scanner.Position) {
/build/soong/android/
Dsoong_config_modules.go369 ctx.Errorf(scanner.Position{Filename: filename}, "%s", err)
Dmodule.go94 Errorf(pos scanner.Position, fmt string, args ...interface{}) argument
/build/blueprint/
Dcontext.go169 Pos scanner.Position // the relevant Blueprints file location
273 pos scanner.Position
274 propertyPos map[string]scanner.Position
1185 buildPos scanner.Position) ([]string, []error) {
1226 func (c *Context) findSubdirBlueprints(dir string, subdirs []string, subdirsPos scanner.Position,
1268 func getLocalStringListFromScope(scope *parser.Scope, v string) ([]string, scanner.Position, error)…
1270 return nil, scanner.Position{}, nil
1288 return nil, scanner.Position{}, &BlueprintError{
1298 func getStringFromScope(scope *parser.Scope, v string) (string, scanner.Position, error) {
1300 return "", scanner.Position{}, nil
[all …]
Dmodule_ctx.go153 Errorf(pos scanner.Position, fmt string, args ...interface{}) argument
427 func (d *baseModuleContext) Errorf(pos scanner.Position,
/build/blueprint/proptools/
Dunpack.go38 Pos scanner.Position
/build/soong/mk2rbc/
Dmk2rbc.go427 mkPos scanner.Position