Home
last modified time | relevance | path

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

/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/parser/
Dparser.go35 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 …]
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
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 …]
Dprinter.go25 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) {
Dsort.go191 func sortSubList(values []Expression, nextPos scanner.Position, file *File) {
263 pos scanner.Position
264 nextPos scanner.Position
Dparser_test.go26 func mkpos(offset, line, column int) scanner.Position {
27 return scanner.Position{
1302 nextPos := make([]scanner.Position, len(mod.Properties))
/build/bazel/mkcompare/
Dmkfile.go58 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/
Dtest_build.go88 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())
Denvironment.go161 scanner := bufio.NewScanner(reader)
162 for scanner.Scan() {
163 text := strings.TrimSpace(scanner.Text())
207 if err := scanner.Err(); err != nil {
/build/soong/jar/
Djar.go159 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 {
Dservices.go70 scanner := bufio.NewScanner(f)
71 for scanner.Scan() {
72 line := scanner.Text()
78 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/cmd/javac_wrapper/
Djavac_wrapper.go127 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/
DPrintClasses.java16 import com.google.errorprone.scanner.BuiltInCheckerSuppliers;
/build/soong/mk2rbc/mk2rbc/
Dmk2rbc.go574 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/
Dgo2bp.go228 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/
Dpom2mk.go302 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/
Dearly_module_context.go50 Errorf(pos scanner.Position, fmt string, args ...interface{})
Dsoong_config_modules.go424 ctx.Errorf(scanner.Position{Filename: filename}, "%s", err)
/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/cmd/pom2bp/
Dpom2bp.go742 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/
Dcontext.go225 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 …]
Dmodule_ctx.go161 Errorf(pos scanner.Position, fmt string, args ...interface{})
450 func (d *baseModuleContext) Errorf(pos scanner.Position,
/build/blueprint/proptools/
Dunpack.go32 Pos scanner.Position
/build/soong/mk2rbc/
Dmk2rbc.go464 mkPos scanner.Position