HomeSort by relevance Sort by last modified time
    Searched refs:fset (Results 1 - 25 of 183) sorted by null

1 2 3 4 5 6 7 8

  /prebuilts/go/darwin-x86/src/go/token/
position_test.go 33 var fset *FileSet
34 checkPos(t, "nil NoPos", fset.Position(NoPos), Position{})
35 fset = NewFileSet()
36 checkPos(t, "fset NoPos", fset.Position(NoPos), Position{})
66 func verifyPositions(t *testing.T, fset *FileSet, f *File, lines []int) {
76 checkPos(t, msg, fset.Position(p), Position{f.Name(), offs, line, col})
92 fset := NewFileSet()
100 f := fset.AddFile(test.filename, fset.Base()+delta, test.size
    [all...]
  /prebuilts/go/linux-x86/src/go/token/
position_test.go 33 var fset *FileSet
34 checkPos(t, "nil NoPos", fset.Position(NoPos), Position{})
35 fset = NewFileSet()
36 checkPos(t, "fset NoPos", fset.Position(NoPos), Position{})
66 func verifyPositions(t *testing.T, fset *FileSet, f *File, lines []int) {
76 checkPos(t, msg, fset.Position(p), Position{f.Name(), offs, line, col})
92 fset := NewFileSet()
100 f := fset.AddFile(test.filename, fset.Base()+delta, test.size
    [all...]
  /prebuilts/go/darwin-x86/src/go/printer/
example_test.go 21 func parseFunc(filename, functionname string) (fun *ast.FuncDecl, fset *token.FileSet) {
22 fset = token.NewFileSet()
23 if file, err := parser.ParseFile(fset, filename, nil, 0); err == nil {
37 // file set fset.
38 funcAST, fset := parseFunc("example_test.go", "ExampleFprint")
45 printer.Fprint(&buf, fset, funcAST.Body)
57 // funcAST, fset := parseFunc("example_test.go", "ExampleFprint")
60 // printer.Fprint(&buf, fset, funcAST.Body)
printer_test.go 28 var fset = token.NewFileSet() var
43 f, err := parser.ParseFile(fset, "", src, parser.ParseComments)
62 if err := cfg.Fprint(&buf, fset, f); err != nil {
68 if _, err := parser.ParseFile(fset, "", res, 0); err != nil {
219 fset := token.NewFileSet()
220 f, err := parser.ParseFile(fset, "", src, parser.ParseComments)
226 fset = token.NewFileSet() // use the wrong file set
227 Fprint(&buf, fset, f)
247 if err := Fprint(&buf, fset, &ast.Ident{Name: name}); err != nil {
261 f, err := parser.ParseFile(fset, "", src, parser.ParseComments
    [all...]
  /prebuilts/go/linux-x86/src/go/printer/
example_test.go 21 func parseFunc(filename, functionname string) (fun *ast.FuncDecl, fset *token.FileSet) {
22 fset = token.NewFileSet()
23 if file, err := parser.ParseFile(fset, filename, nil, 0); err == nil {
37 // file set fset.
38 funcAST, fset := parseFunc("example_test.go", "ExampleFprint")
45 printer.Fprint(&buf, fset, funcAST.Body)
57 // funcAST, fset := parseFunc("example_test.go", "ExampleFprint")
60 // printer.Fprint(&buf, fset, funcAST.Body)
  /prebuilts/go/darwin-x86/src/go/scanner/
example_test.go 19 fset := token.NewFileSet() // positions are relative to fset
20 file := fset.AddFile("", fset.Base(), len(src)) // register input "file"
29 fmt.Printf("%s\t%s\t%q\n", fset.Position(pos), tok, lit)
  /prebuilts/go/linux-x86/src/go/scanner/
example_test.go 19 fset := token.NewFileSet() // positions are relative to fset
20 file := fset.AddFile("", fset.Base(), len(src)) // register input "file"
29 fmt.Printf("%s\t%s\t%q\n", fset.Position(pos), tok, lit)
  /prebuilts/go/darwin-x86/src/go/types/
self_test.go 24 fset := token.NewFileSet()
25 files, err := pkgFiles(fset, ".")
31 _, err = conf.Check("go/types", fset, files, nil)
59 fset := token.NewFileSet()
60 files, err := pkgFiles(fset, path)
68 conf.Check(path, fset, files, nil)
74 fset.Iterate(func(f *token.File) bool {
86 func pkgFiles(fset *token.FileSet, path string) ([]*ast.File, error) {
94 file, err := parser.ParseFile(fset, filename, nil, 0)
issues_test.go 23 f, err := parser.ParseFile(fset, "", src, 0)
29 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, nil) // do not crash
48 f, err := parser.ParseFile(fset, "", src, 0)
55 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Types: types})
96 f, err := parser.ParseFile(fset, "", src, 0)
103 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Types: types})
113 t.Errorf("%s: got %s; want %s", fset.Position(x.Pos()), tv.Type, want)
130 f, err := parser.ParseFile(fset, "", src, 0)
137 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Defs: defs})
175 f, err := parser.ParseFile(fset, "", src, 0
    [all...]
eval_test.go 21 func testEval(t *testing.T, fset *token.FileSet, pkg *Package, pos token.Pos, expr string, typ Type, typStr, valStr string) {
22 gotTv, err := Eval(fset, pkg, pos, expr)
59 fset := token.NewFileSet()
61 testEval(t, fset, nil, token.NoPos, typ.Name(), typ, "", "")
66 fset := token.NewFileSet()
68 testEval(t, fset, nil, token.NoPos, test.src, nil, test.str, "")
83 fset := token.NewFileSet()
85 testEval(t, fset, nil, token.NoPos, test, Typ[UntypedBool], "", "true")
154 fset := token.NewFileSet()
157 file, err := parser.ParseFile(fset, "p", src, parser.ParseComments
    [all...]
  /prebuilts/go/linux-x86/src/go/types/
self_test.go 24 fset := token.NewFileSet()
25 files, err := pkgFiles(fset, ".")
31 _, err = conf.Check("go/types", fset, files, nil)
59 fset := token.NewFileSet()
60 files, err := pkgFiles(fset, path)
68 conf.Check(path, fset, files, nil)
74 fset.Iterate(func(f *token.File) bool {
86 func pkgFiles(fset *token.FileSet, path string) ([]*ast.File, error) {
94 file, err := parser.ParseFile(fset, filename, nil, 0)
issues_test.go 23 f, err := parser.ParseFile(fset, "", src, 0)
29 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, nil) // do not crash
48 f, err := parser.ParseFile(fset, "", src, 0)
55 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Types: types})
96 f, err := parser.ParseFile(fset, "", src, 0)
103 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Types: types})
113 t.Errorf("%s: got %s; want %s", fset.Position(x.Pos()), tv.Type, want)
130 f, err := parser.ParseFile(fset, "", src, 0)
137 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Defs: defs})
175 f, err := parser.ParseFile(fset, "", src, 0
    [all...]
eval_test.go 21 func testEval(t *testing.T, fset *token.FileSet, pkg *Package, pos token.Pos, expr string, typ Type, typStr, valStr string) {
22 gotTv, err := Eval(fset, pkg, pos, expr)
59 fset := token.NewFileSet()
61 testEval(t, fset, nil, token.NoPos, typ.Name(), typ, "", "")
66 fset := token.NewFileSet()
68 testEval(t, fset, nil, token.NoPos, test.src, nil, test.str, "")
83 fset := token.NewFileSet()
85 testEval(t, fset, nil, token.NoPos, test, Typ[UntypedBool], "", "true")
154 fset := token.NewFileSet()
157 file, err := parser.ParseFile(fset, "p", src, parser.ParseComments
    [all...]
  /prebuilts/go/darwin-x86/src/go/parser/
example_test.go 14 fset := token.NewFileSet() // positions are relative to fset
18 f, err := parser.ParseFile(fset, "example_test.go", nil, parser.ImportsOnly)
  /prebuilts/go/linux-x86/src/go/parser/
example_test.go 14 fset := token.NewFileSet() // positions are relative to fset
18 f, err := parser.ParseFile(fset, "example_test.go", nil, parser.ImportsOnly)
  /prebuilts/go/darwin-x86/src/go/ast/
example_test.go 26 fset := token.NewFileSet() // positions are relative to fset
27 f, err := parser.ParseFile(fset, "src.go", src, 0)
42 fmt.Printf("%s:\t%s\n", fset.Position(n.Pos()), s)
69 fset := token.NewFileSet() // positions are relative to fset
70 f, err := parser.ParseFile(fset, "", src, 0)
76 ast.Print(fset, f)
163 fset := token.NewFileSet() // positions are relative to fset
    [all...]
import.go 15 func SortImports(fset *token.FileSet, f *File) {
33 if j > i && fset.Position(s.Pos()).Line > 1+fset.Position(d.Specs[j-1].End()).Line {
35 specs = append(specs, sortSpecs(fset, f, d.Specs[i:j])...)
39 specs = append(specs, sortSpecs(fset, f, d.Specs[i:])...)
45 lastLine := fset.Position(lastSpec.Pos()).Line
46 if rParenLine := fset.Position(d.Rparen).Line; rParenLine > lastLine+1 {
47 fset.File(d.Rparen).MergeLine(rParenLine - 1)
90 func sortSpecs(fset *token.FileSet, f *File, specs []Spec) []Spec {
106 lastLine := fset.Position(pos[len(pos)-1].End).Lin
    [all...]
filter_test.go 60 fset := token.NewFileSet()
61 file, err := parser.ParseFile(fset, "", input, 0)
68 pkg, err := ast.NewPackage(fset, files, nil, nil)
78 if err := format.Node(&buf, fset, merged); err != nil {
  /prebuilts/go/linux-x86/src/go/ast/
example_test.go 26 fset := token.NewFileSet() // positions are relative to fset
27 f, err := parser.ParseFile(fset, "src.go", src, 0)
42 fmt.Printf("%s:\t%s\n", fset.Position(n.Pos()), s)
69 fset := token.NewFileSet() // positions are relative to fset
70 f, err := parser.ParseFile(fset, "", src, 0)
76 ast.Print(fset, f)
163 fset := token.NewFileSet() // positions are relative to fset
    [all...]
import.go 15 func SortImports(fset *token.FileSet, f *File) {
33 if j > i && fset.Position(s.Pos()).Line > 1+fset.Position(d.Specs[j-1].End()).Line {
35 specs = append(specs, sortSpecs(fset, f, d.Specs[i:j])...)
39 specs = append(specs, sortSpecs(fset, f, d.Specs[i:])...)
45 lastLine := fset.Position(lastSpec.Pos()).Line
46 if rParenLine := fset.Position(d.Rparen).Line; rParenLine > lastLine+1 {
47 fset.File(d.Rparen).MergeLine(rParenLine - 1)
90 func sortSpecs(fset *token.FileSet, f *File, specs []Spec) []Spec {
106 lastLine := fset.Position(pos[len(pos)-1].End).Lin
    [all...]
filter_test.go 60 fset := token.NewFileSet()
61 file, err := parser.ParseFile(fset, "", input, 0)
68 pkg, err := ast.NewPackage(fset, files, nil, nil)
78 if err := format.Node(&buf, fset, merged); err != nil {
  /external/skia/gm/
fontmgr.cpp 147 SkFontStyleSet* fset) {
151 for (int j = 0; j < fset->count(); ++j) {
154 fset->getStyle(j, &fs, &sname);
158 SkSafeUnref(p.setTypeface(fset->createTypeface(j)));
165 SkFontStyleSet* fset) {
172 SkTypeface* face = fset->matchStyle(fs);
195 SkAutoTUnref<SkFontStyleSet> fset; variable
197 fset.reset(fFM->matchFamily(gNames[i]));
198 if (fset->count() > 0) {
202 if (nullptr == fset.get())
    [all...]
  /external/chromium-trace/catapult/third_party/WebOb/webob/
descriptors.py 43 def fset(req, val): function in function:environ_getter
49 def fset(req, val): function in function:environ_getter
57 return property(fget, fset, fdel, doc=doc)
69 def fset(req, val): function in function:environ_decoder
75 def fset(req, val): function in function:environ_decoder
83 return property(fget, fset, fdel, doc=doc)
90 def fset(req, val): function in function:upath_property
97 def fset(req, val): function in function:upath_property
102 return property(fget, fset, doc='upath_property(%r)' % key)
118 def fset(self, val) function in function:deprecated_property
138 def fset(r, value): function in function:header_getter
165 def fset(r, val): function in function:converter
    [all...]
  /prebuilts/go/darwin-x86/src/cmd/gofmt/
long_test.go 35 func gofmt(fset *token.FileSet, filename string, src *bytes.Buffer) error {
36 f, _, _, err := format.Parse(fset, filename, src.Bytes(), false)
40 ast.SortImports(fset, f)
42 return (&printer.Config{Mode: printerMode, Tabwidth: tabWidth}).Fprint(src, fset, f)
63 fset := token.NewFileSet()
64 if _, _, _, err = format.Parse(fset, filename, b1.Bytes(), false); err != nil {
72 if err = gofmt(fset, filename, b1); err != nil {
82 if err = gofmt(fset, filename, b2); err != nil {
  /prebuilts/go/linux-x86/src/cmd/gofmt/
long_test.go 35 func gofmt(fset *token.FileSet, filename string, src *bytes.Buffer) error {
36 f, _, _, err := format.Parse(fset, filename, src.Bytes(), false)
40 ast.SortImports(fset, f)
42 return (&printer.Config{Mode: printerMode, Tabwidth: tabWidth}).Fprint(src, fset, f)
63 fset := token.NewFileSet()
64 if _, _, _, err = format.Parse(fset, filename, b1.Bytes(), false); err != nil {
72 if err = gofmt(fset, filename, b1); err != nil {
82 if err = gofmt(fset, filename, b2); err != nil {

Completed in 492 milliseconds

1 2 3 4 5 6 7 8