/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 {
|
headscan.go | 69 fset := token.NewFileSet() 75 pkgs, err := parser.ParseDir(fset, path, isGoFile, parser.ParseComments)
|
/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) 169 fset := token.NewFileSet() 174 file, err := parser.ParseFile(fset, filename, nil, parser.AllErrors) 203 conf.Check(path, fset, files, &info) 213 posn := fset.Position(id.Pos())
|
api_test.go | 24 fset := token.NewFileSet() 25 f, err := parser.ParseFile(fset, path, source, 0) 31 return conf.Check(f.Name.Name, fset, []*ast.File{f}, info) 599 fset := token.NewFileSet() 601 f, err := parser.ParseFile(fset, "main", src, 0) 622 if _, err := new(Config).Check("main", fset, test.files, &info); err != nil { 640 fset := token.NewFileSet() 643 check := NewChecker(&conf, fset, pkg, &info) 647 f, err := parser.ParseFile(fset, filename, src, 0) 680 fset := token.NewFileSet( [all...] |
/prebuilts/go/linux-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 {
|
headscan.go | 69 fset := token.NewFileSet() 75 pkgs, err := parser.ParseDir(fset, path, isGoFile, parser.ParseComments)
|
/prebuilts/go/linux-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) 169 fset := token.NewFileSet() 174 file, err := parser.ParseFile(fset, filename, nil, parser.AllErrors) 203 conf.Check(path, fset, files, &info) 213 posn := fset.Position(id.Pos())
|
api_test.go | 24 fset := token.NewFileSet() 25 f, err := parser.ParseFile(fset, path, source, 0) 31 return conf.Check(f.Name.Name, fset, []*ast.File{f}, info) 599 fset := token.NewFileSet() 601 f, err := parser.ParseFile(fset, "main", src, 0) 622 if _, err := new(Config).Check("main", fset, test.files, &info); err != nil { 640 fset := token.NewFileSet() 643 check := NewChecker(&conf, fset, pkg, &info) 647 f, err := parser.ParseFile(fset, filename, src, 0) 680 fset := token.NewFileSet( [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;
|
/external/chromium-trace/catapult/third_party/Paste/paste/util/ |
classinit.py | 33 'fset': old_prop.fset,
|
/prebuilts/go/darwin-x86/src/cmd/cgo/ |
util.go | 34 return fset.Position(pos).String() 52 fmt.Fprintf(os.Stderr, "%s: ", fset.Position(pos).String())
|
/prebuilts/go/darwin-x86/src/go/parser/ |
interface.go | 76 // file set fset. 84 func ParseFile(fset *token.FileSet, filename string, src interface{}, mode Mode) (f *ast.File, err error) { 116 p.init(fset, filename, text, mode) 128 // to ParseFile unchanged. Position information is recorded in fset. 134 func ParseDir(fset *token.FileSet, path string, filter func(os.FileInfo) bool, mode Mode) (pkgs map[string]*ast.Package, first error) { 150 if src, err := ParseFile(fset, filename, nil, mode); err == nil { 174 func ParseExprFrom(fset *token.FileSet, filename string, src interface{}, mode Mode) (ast.Expr, error) { 194 p.init(fset, filename, text, mode)
|
/prebuilts/go/linux-x86/src/cmd/cgo/ |
util.go | 34 return fset.Position(pos).String() 52 fmt.Fprintf(os.Stderr, "%s: ", fset.Position(pos).String())
|
/prebuilts/go/linux-x86/src/go/parser/ |
interface.go | 76 // file set fset. 84 func ParseFile(fset *token.FileSet, filename string, src interface{}, mode Mode) (f *ast.File, err error) { 116 p.init(fset, filename, text, mode) 128 // to ParseFile unchanged. Position information is recorded in fset. 134 func ParseDir(fset *token.FileSet, path string, filter func(os.FileInfo) bool, mode Mode) (pkgs map[string]*ast.Package, first error) { 150 if src, err := ParseFile(fset, filename, nil, mode); err == nil { 174 func ParseExprFrom(fset *token.FileSet, filename string, src interface{}, mode Mode) (ast.Expr, error) { 194 p.init(fset, filename, text, mode)
|
/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())
|
resolve.go | 17 fset *token.FileSet 22 p.errors.Add(p.fset.Position(pos), msg) 38 prevDecl = fmt.Sprintf("\n\tprevious declaration at %s", p.fset.Position(pos)) 74 func NewPackage(fset *token.FileSet, files map[string]*File, importer Importer, universe *Scope) (*Package, error) { 76 p.fset = fset
|
/prebuilts/go/linux-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())
|
/prebuilts/go/darwin-x86/src/go/format/ |
format_test.go | 45 fset := token.NewFileSet() 46 file, err := parser.ParseFile(fset, testfile, src, parser.ParseComments) 53 if err = Node(&buf, fset, file); err != nil {
|
/prebuilts/go/linux-x86/src/go/format/ |
format_test.go | 45 fset := token.NewFileSet() 46 file, err := parser.ParseFile(fset, testfile, src, parser.ParseComments) 53 if err = Node(&buf, fset, file); err != nil {
|
/external/chromium-trace/catapult/third_party/WebOb/webob/ |
etag.py | 29 def fset(req, val): function in function:etag_property 36 return property(fget, fset, fdel, doc=doc)
|