/prebuilts/go/linux-x86/src/go/ast/ |
commentmap_test.go | 106 fset := token.NewFileSet() 107 f, err := parser.ParseFile(fset, "", src, parser.ParseComments) 111 cmap := NewCommentMap(fset, f, f.Comments) 115 key := fmt.Sprintf("%2d: %T", fset.Position(n.Pos()).Line, n) 134 out = append(out, fmt.Sprintf("\t\"%2d: %T\":\t%q,", fset.Position(n.Pos()).Line, n, ctext(list)))
|
/prebuilts/go/linux-x86/src/go/doc/ |
doc_test.go | 40 func nodeFmt(node interface{}, fset *token.FileSet) string { 42 printer.Fprint(&buf, fset, node) 77 FSet *token.FileSet 94 fset := token.NewFileSet() 95 pkgs, err := parser.ParseDir(fset, dataDir, filter, parser.ParseComments) 115 if err := templateTxt.Execute(&buf, bundle{doc, fset}); err != nil {
|
example_test.go | 162 fset := token.NewFileSet() 163 file, err := parser.ParseFile(fset, "test.go", strings.NewReader(exampleTestFile), parser.ParseComments) 178 if err := format.Node(&buf, fset, e.Play); err != nil {
|
/prebuilts/go/linux-x86/src/go/types/ |
eval.go | 37 func Eval(fset *token.FileSet, pkg *Package, pos token.Pos, expr string) (TypeAndValue, error) { 47 // incorrect (files spread across a wide range of fset 62 return TypeAndValue{}, fmt.Errorf("no position %s found in package %s", fset.Position(pos), pkg.name) 68 node, err := parser.ParseExprFrom(fset, "eval", expr, 0) 74 check := NewChecker(nil, fset, pkg, nil)
|
errors.go | 43 arg = check.fset.Position(a).String() 58 check.fset.Position(pos), 70 err := Error{check.fset, pos, msg, soft}
|
hilbert_test.go | 35 fset := token.NewFileSet() 36 f, err := parser.ParseFile(fset, "hilbert.go", src, 0) 44 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, nil)
|
stdlib_test.go | 62 s.Init(fset.AddFile("", fset.Base(), n), src[:n], nil, scanner.ScanComments) 89 fset := token.NewFileSet() 109 file, err := parser.ParseFile(fset, filename, nil, 0) 112 _, err = conf.Check(filename, fset, []*ast.File{file}, nil) 177 fset := token.NewFileSet() 182 file, err := parser.ParseFile(fset, filename, nil, parser.AllErrors) 211 conf.Check(path, fset, files, &info) 221 posn := fset.Position(id.Pos())
|
/prebuilts/go/darwin-x86/src/cmd/cover/ |
func.go | 81 fset := token.NewFileSet() 82 parsedFile, err := parser.ParseFile(fset, name, nil, 0) 87 fset: fset, 106 fset *token.FileSet 116 start := v.fset.Position(n.Pos()) 117 end := v.fset.Position(n.End())
|
/prebuilts/go/linux-x86/src/cmd/cover/ |
func.go | 81 fset := token.NewFileSet() 82 parsedFile, err := parser.ParseFile(fset, name, nil, 0) 87 fset: fset, 106 fset *token.FileSet 116 start := v.fset.Position(n.Pos()) 117 end := v.fset.Position(n.End())
|
/prebuilts/go/darwin-x86/src/go/scanner/ |
scanner_test.go | 16 var fset = token.NewFileSet() var 205 pos := fset.Position(p) 231 s.Init(fset.AddFile("", fset.Base(), len(source)), source, eh, ScanComments|dontInsertSemis) 314 file := fset.AddFile("TestSemis", fset.Base(), len(line)) 532 file := fset.AddFile(filepath.Join("dir", "TestLineComments"), fset.Base(), len(src)) 556 f1 := fset.AddFile("src1", fset.Base(), len(src1) [all...] |
/prebuilts/go/linux-x86/src/go/scanner/ |
scanner_test.go | 16 var fset = token.NewFileSet() var 205 pos := fset.Position(p) 231 s.Init(fset.AddFile("", fset.Base(), len(source)), source, eh, ScanComments|dontInsertSemis) 314 file := fset.AddFile("TestSemis", fset.Base(), len(line)) 532 file := fset.AddFile(filepath.Join("dir", "TestLineComments"), fset.Base(), len(src)) 556 f1 := fset.AddFile("src1", fset.Base(), len(src1) [all...] |
/prebuilts/go/darwin-x86/src/go/doc/ |
example_test.go | 162 fset := token.NewFileSet() 163 file, err := parser.ParseFile(fset, "test.go", strings.NewReader(exampleTestFile), parser.ParseComments) 178 if err := format.Node(&buf, fset, e.Play); err != nil {
|
/prebuilts/go/darwin-x86/src/go/types/ |
errors.go | 43 arg = check.fset.Position(a).String() 58 check.fset.Position(pos), 70 err := Error{check.fset, pos, msg, soft}
|
hilbert_test.go | 35 fset := token.NewFileSet() 36 f, err := parser.ParseFile(fset, "hilbert.go", src, 0) 44 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, nil)
|
stdlib_test.go | 62 s.Init(fset.AddFile("", fset.Base(), n), src[:n], nil, scanner.ScanComments) 89 fset := token.NewFileSet() 109 file, err := parser.ParseFile(fset, filename, nil, 0) 112 _, err = conf.Check(filename, fset, []*ast.File{file}, nil) 177 fset := token.NewFileSet() 182 file, err := parser.ParseFile(fset, filename, nil, parser.AllErrors) 211 conf.Check(path, fset, files, &info) 221 posn := fset.Position(id.Pos())
|
/prebuilts/go/darwin-x86/src/cmd/vet/internal/cfg/ |
cfg_test.go | 136 fset := token.NewFileSet() 137 f, err := parser.ParseFile(fset, "dummy.go", src, parser.Mode(0)) 164 fmt.Fprintf(&buf, "\t%s\n", formatNode(fset, n)) 175 t.Logf("control flow graph:\n%s", g.Format(fset))
|
/prebuilts/go/linux-x86/src/cmd/vet/internal/cfg/ |
cfg_test.go | 136 fset := token.NewFileSet() 137 f, err := parser.ParseFile(fset, "dummy.go", src, parser.Mode(0)) 164 fmt.Fprintf(&buf, "\t%s\n", formatNode(fset, n)) 175 t.Logf("control flow graph:\n%s", g.Format(fset))
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/ |
fcache.c | 98 MR_dumpTokenSet(stdout,1,q->fset);
|
fset2.c | 52 set *fset; /* MR11 make global */
variable 54 static set *constrain; /* pts into fset. constrains tToken() to 'constrain' */
762 require(constrain>=fset&&constrain<=&(fset[CLL_k]),"tToken: constrain is not a valid set");
764 require(constrain>=fset&&constrain<=&(fset[LL_k]),"tToken: constrain is not a valid set");
766 constrain = &fset[maxk-k+1];
914 constrain = &fset[maxk-k+1];
958 require(constrain>=fset&&constrain<=&(fset[CLL_k]), [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/ |
LL1Analyzer.java | 263 LookaheadSet fset = _FIRST(following, chaseFollowTransitions); local 264 fset.orInPlace(tset); // tset cached; or into new set 265 fset.remove(Label.EOR_TOKEN_TYPE); 266 tset = fset;
|
/prebuilts/go/darwin-x86/src/cmd/gofmt/ |
internal.go | 23 func parse(fset *token.FileSet, filename string, src []byte, fragmentOk bool) ( 30 file, err = parser.ParseFile(fset, filename, src, parserMode) 43 file, err = parser.ParseFile(fset, filename, psrc, parserMode) 67 file, err = parser.ParseFile(fset, filename, fsrc, parserMode) 95 fset *token.FileSet, 105 err := cfg.Fprint(&buf, fset, file) 148 err := cfg.Fprint(&buf, fset, file)
|
/prebuilts/go/darwin-x86/src/go/format/ |
internal.go | 23 func parse(fset *token.FileSet, filename string, src []byte, fragmentOk bool) ( 30 file, err = parser.ParseFile(fset, filename, src, parserMode) 43 file, err = parser.ParseFile(fset, filename, psrc, parserMode) 67 file, err = parser.ParseFile(fset, filename, fsrc, parserMode) 95 fset *token.FileSet, 105 err := cfg.Fprint(&buf, fset, file) 148 err := cfg.Fprint(&buf, fset, file)
|
/prebuilts/go/linux-x86/src/cmd/gofmt/ |
internal.go | 23 func parse(fset *token.FileSet, filename string, src []byte, fragmentOk bool) ( 30 file, err = parser.ParseFile(fset, filename, src, parserMode) 43 file, err = parser.ParseFile(fset, filename, psrc, parserMode) 67 file, err = parser.ParseFile(fset, filename, fsrc, parserMode) 95 fset *token.FileSet, 105 err := cfg.Fprint(&buf, fset, file) 148 err := cfg.Fprint(&buf, fset, file)
|
/prebuilts/go/linux-x86/src/go/format/ |
internal.go | 23 func parse(fset *token.FileSet, filename string, src []byte, fragmentOk bool) ( 30 file, err = parser.ParseFile(fset, filename, src, parserMode) 43 file, err = parser.ParseFile(fset, filename, psrc, parserMode) 67 file, err = parser.ParseFile(fset, filename, fsrc, parserMode) 95 fset *token.FileSet, 105 err := cfg.Fprint(&buf, fset, file) 148 err := cfg.Fprint(&buf, fset, file)
|
/prebuilts/go/darwin-x86/src/go/ast/ |
commentmap.go | 80 fset *token.FileSet 94 r.pos = r.fset.Position(r.comment.Pos()) 95 r.end = r.fset.Position(r.comment.End()) 143 func NewCommentMap(fset *token.FileSet, node Node, comments []*CommentGroup) CommentMap { 154 r := commentListReader{fset: fset, list: tmp} // !r.eol() because len(comments) > 0 173 qpos = fset.Position(q.Pos()) // current node position 187 pgend = fset.Position(pg.End()) 230 pend = fset.Position(p.End())
|