Searched refs:scanner (Results 1 – 25 of 25) sorted by relevance
/build/soong/androidmk/parser/ |
D | parser.go | 31 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/parser/ |
D | parser.go | 35 Pos scanner.Position 48 func (f *File) Pos() scanner.Position { 49 return scanner.Position{ 57 func (f *File) End() scanner.Position { 77 p.accept(scanner.EOF) 82 Name: p.scanner.Filename, 92 p.scanner.Filename = filename 99 p.scanner.Filename = filename 108 p.accept(scanner.EOF) 114 scanner scanner.Scanner member [all …]
|
D | ast.go | 25 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 88 func (m *Module) Pos() scanner.Position { return m.TypePos } 89 func (m *Module) End() scanner.Position { return m.Map.End() } 116 NamePos scanner.Position [all …]
|
D | printer.go | 25 var noPos scanner.Position 33 pos scanner.Position 55 pos: scanner.Position{ 243 func (p *printer) printList(list []Expression, pos, endPos scanner.Position) { 319 func (p *printer) printToken(s string, pos scanner.Position) { 341 func (p *printer) printInLineCommentsBefore(pos scanner.Position) { 356 func (p *printer) printEndOfLineCommentsBefore(pos scanner.Position) { 374 func (p *printer) requestNewlinesForPos(pos scanner.Position) bool { 485 func (p *printer) unindent(pos scanner.Position) {
|
D | sort.go | 191 func sortSubList(values []Expression, nextPos scanner.Position, file *File) { 263 pos scanner.Position 264 nextPos scanner.Position
|
D | parser_test.go | 26 func mkpos(offset, line, column int) scanner.Position { 27 return scanner.Position{ 1302 nextPos := make([]scanner.Position, len(mod.Properties))
|
/build/bazel/mkcompare/ |
D | mkfile.go | 58 func (mk *MkFile) handleModule(scanner *myScanner, moduleType string) (*MkModule, error) { 59 mod := MkModule{Location: scanner.lineNo, Type: moduleType, Variables: make(map[string]string)} 61 for scanner.Scan() { 62 line := scanner.Text() 75 return nil, fmt.Errorf("%d: second include for module", scanner.lineNo) 89 return nil, fmt.Errorf("%d: unexpected line:\n%s", scanner.lineNo, line) 92 return &mod, scanner.Err() 146 scanner := &myScanner{bufio.NewScanner(source), 0} 148 scanner.Scanner.Buffer(buffer, len(buffer)) 151 for scanner.Scan() { [all …]
|
/build/soong/ui/build/ |
D | test_build.go | 88 scanner := bufio.NewScanner(stdout) 89 for scanner.Scan() { 90 line := scanner.Text() 139 scanner := bufio.NewScanner(queryStdout) 140 for scanner.Scan() { 142 fmt.Fprintln(sb, " ", scanner.Text())
|
D | environment.go | 161 scanner := bufio.NewScanner(reader) 162 for scanner.Scan() { 163 text := strings.TrimSpace(scanner.Text()) 207 if err := scanner.Err(); err != nil {
|
/build/soong/jar/ |
D | jar.go | 159 var s scanner.Scanner 164 s.Error = func(s *scanner.Scanner, msg string) { 181 if tok != scanner.Ident || sErr != nil { 186 if tok == scanner.Ident { 205 } else if tok == scanner.EOF { 218 if tok != scanner.Ident {
|
D | services.go | 70 scanner := bufio.NewScanner(f) 71 for scanner.Scan() { 72 line := scanner.Text() 78 if err := scanner.Err(); err != nil {
|
/build/soong/ui/status/ |
D | kati.go | 123 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/cmd/javac_wrapper/ |
D | javac_wrapper.go | 127 scanner := bufio.NewScanner(r) 131 scanner.Buffer(nil, 2*1024*1024) 132 for scanner.Scan() { 133 proc.processLine(w, scanner.Text()) 135 err := scanner.Err()
|
/build/bazel/rules/java/errorprone/ |
D | PrintClasses.java | 16 import com.google.errorprone.scanner.BuiltInCheckerSuppliers;
|
/build/soong/mk2rbc/mk2rbc/ |
D | mk2rbc.go | 574 scanner := bufio.NewScanner(stdout) 576 for scanner.Scan() { 577 result = append(result, strings.TrimPrefix(scanner.Text(), "./")) 580 err = scanner.Err() 618 scanner := bufio.NewScanner(file) 619 for scanner.Scan() { 620 line := scanner.Text() 626 if err = scanner.Err(); err != nil {
|
/build/soong/cmd/go2bp/ |
D | go2bp.go | 228 scanner := bufio.NewScanner(bytes.NewBuffer(buf)) 232 if !scanner.Scan() { 233 if scanner.Err() != nil { 234 return scanner.Err() 242 line := scanner.Text()
|
/build/soong/cmd/pom2mk/ |
D | pom2mk.go | 302 scanner := bufio.NewScanner(bytes.NewBuffer(buf)) 306 if !scanner.Scan() { 307 if scanner.Err() != nil { 308 return scanner.Err() 316 line := scanner.Text()
|
/build/soong/android/ |
D | early_module_context.go | 50 Errorf(pos scanner.Position, fmt string, args ...interface{})
|
D | soong_config_modules.go | 424 ctx.Errorf(scanner.Position{Filename: filename}, "%s", err)
|
/build/soong/androidmk/androidmk/ |
D | androidmk.go | 41 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/cmd/pom2bp/ |
D | pom2bp.go | 742 scanner := bufio.NewScanner(bytes.NewBuffer(buf)) 746 if !scanner.Scan() { 747 if scanner.Err() != nil { 748 return scanner.Err() 756 line := scanner.Text()
|
/build/blueprint/ |
D | context.go | 225 Pos scanner.Position // the relevant Blueprints file location 329 pos scanner.Position 330 propertyPos map[string]scanner.Position 1276 buildPos scanner.Position) ([]string, []error) { 1317 func (c *Context) findSubdirBlueprints(dir string, subdirs []string, subdirsPos scanner.Position, 1359 func getLocalStringListFromScope(scope *parser.Scope, v string) ([]string, scanner.Position, error)… 1361 return nil, scanner.Position{}, nil 1379 return nil, scanner.Position{}, &BlueprintError{ 1389 func getStringFromScope(scope *parser.Scope, v string) (string, scanner.Position, error) { 1391 return "", scanner.Position{}, nil [all …]
|
D | module_ctx.go | 161 Errorf(pos scanner.Position, fmt string, args ...interface{}) 450 func (d *baseModuleContext) Errorf(pos scanner.Position,
|
/build/blueprint/proptools/ |
D | unpack.go | 32 Pos scanner.Position
|
/build/soong/mk2rbc/ |
D | mk2rbc.go | 464 mkPos scanner.Position
|