Home
last modified time | relevance | path

Searched refs:scanner (Results 1 – 19 of 19) sorted by relevance

/build/blueprint/parser/
Dparser.go33 Pos scanner.Position
46 func (f *File) Pos() scanner.Position {
47 return scanner.Position{
55 func (f *File) End() scanner.Position {
74 p.accept(scanner.EOF)
79 Name: p.scanner.Filename,
89 p.scanner.Filename = filename
96 p.scanner.Filename = filename
102 scanner scanner.Scanner member
113 p.scanner.Init(r)
[all …]
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 …]
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.go93 func sortSubList(values []Expression, nextPos scanner.Position, file *File) {
156 pos scanner.Position
157 nextPos scanner.Position
Dparser_test.go26 func mkpos(offset, line, column int) scanner.Position {
27 return scanner.Position{
1109 nextPos := make([]scanner.Position, len(mod.Properties))
/build/soong/androidmk/parser/
Dparser.go31 Pos scanner.Position
53 p.accept(scanner.EOF)
61 scanner scanner.Scanner member
72 p.scanner.Init(r)
73 p.scanner.Error = func(sc *scanner.Scanner, msg string) {
76 p.scanner.Whitespace = 0
77 p.scanner.IsIdentRune = func(ch rune, i int) bool {
82 p.scanner.Mode = scanner.ScanIdents
83 p.scanner.Filename = filename
88 func (p *parser) Unpack(pos Pos) scanner.Position {
[all …]
/build/blueprint/bootstrap/
Dcleanup.go94 scanner := bufio.NewScanner(logFile)
98 if !scanner.Scan() || scanner.Text() != expectedFirstLine {
103 for scanner.Scan() {
104 line := scanner.Text()
130 if err := scanner.Err(); err != nil {
/build/soong/ui/status/
Dkati.go123 scanner := bufio.NewScanner(pipe)
124 scanner.Buffer(nil, 2*1024*1024)
125 for scanner.Scan() {
126 parser.parseLine(scanner.Text())
131 if err := scanner.Err(); err != nil {
/build/soong/ui/build/
Dtest_build.go72 scanner := bufio.NewScanner(stdout)
73 for scanner.Scan() {
74 line := scanner.Text()
Denvironment.go132 scanner := bufio.NewScanner(reader)
133 for scanner.Scan() {
134 text := strings.TrimSpace(scanner.Text())
171 if err := scanner.Err(); err != nil {
/build/soong/cmd/javac_wrapper/
Djavac_wrapper.go121 scanner := bufio.NewScanner(r)
125 scanner.Buffer(nil, 2*1024*1024)
126 for scanner.Scan() {
127 processLine(w, scanner.Text())
129 err := scanner.Err()
/build/soong/android/
Dprebuilt_etc_test.go167 scanner := bufio.NewScanner(bytes.NewReader(buf.Bytes()))
168 for scanner.Scan() {
169 line := scanner.Text()
Dmodule.go95 Errorf(pos scanner.Position, fmt string, args ...interface{})
/build/soong/cmd/pom2mk/
Dpom2mk.go296 scanner := bufio.NewScanner(bytes.NewBuffer(buf))
300 if !scanner.Scan() {
301 if scanner.Err() != nil {
302 return scanner.Err()
310 line := scanner.Text()
/build/soong/cmd/pom2bp/
Dpom2bp.go398 scanner := bufio.NewScanner(bytes.NewBuffer(buf))
402 if !scanner.Scan() {
403 if scanner.Err() != nil {
404 return scanner.Err()
412 line := scanner.Text()
/build/blueprint/
Dunpack_test.go611 func mkpos(offset, line, column int) scanner.Position {
612 return scanner.Position{
Dcontext.go125 Pos scanner.Position // the relevant Blueprints file location
174 pos scanner.Position
175 propertyPos map[string]scanner.Position
998 buildPos scanner.Position) ([]string, []error) {
1039 func (c *Context) findSubdirBlueprints(dir string, subdirs []string, subdirsPos scanner.Position,
1081 func getLocalStringListFromScope(scope *parser.Scope, v string) ([]string, scanner.Position, error)…
1083 return nil, scanner.Position{}, nil
1101 return nil, scanner.Position{}, &BlueprintError{
1111 func getStringFromScope(scope *parser.Scope, v string) (string, scanner.Position, error) {
1113 return "", scanner.Position{}, nil
[all …]
Dmodule_ctx.go130 Errorf(pos scanner.Position, fmt string, args ...interface{})
229 func (d *baseModuleContext) Errorf(pos scanner.Position,
/build/soong/androidmk/cmd/androidmk/
Dandroidmk.go50 mkPos scanner.Position // Position of the last handled line in the makefile
51 bpPos scanner.Position // Position of the last emitted line to the blueprint file
96 func (f *bpFile) setMkPos(pos, end scanner.Position) {