/prebuilts/go/linux-x86/src/go/ast/ |
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 {
|
print.go | 31 // If fset != nil, position information is interpreted relative 39 func Fprint(w io.Writer, fset *token.FileSet, x interface{}, f FieldFilter) error { 40 return fprint(w, fset, x, f) 43 func fprint(w io.Writer, fset *token.FileSet, x interface{}, f FieldFilter) (err error) { 47 fset: fset, 72 // Print(fset, x) is the same as Fprint(os.Stdout, fset, x, NotNilFilter). 73 func Print(fset *token.FileSet, x interface{}) error { 74 return Fprint(os.Stdout, fset, x, NotNilFilter [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/ |
AntlrPPC.mak | 10 # fset.c
39 "{ObjDir?PPC}fset.c.x" ?
77 "{ObjDir?PPC}fset.c.x" ? {?MondoBuild?} fset.c
78 {PPCC} fset.c -o {Targ} {PPCCOptions}
|
makefile | 57 # fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \
83 # fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \
107 # fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \
132 # fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \
178 OBJ=antlr.o scan.o err.o bits.o build.o fset2.o fset.o gen.o \
187 SRC=antlr.c scan.c err.c bits.c build.c fset2.c fset.c gen.c globals.c \
|
/prebuilts/go/darwin-x86/src/go/types/ |
example_test.go | 37 fset := token.NewFileSet() 56 f, err := parser.ParseFile(fset, file.name, file.input, 0) 67 pkg, err := conf.Check("temperature", fset, files, nil) 113 fset := token.NewFileSet() 114 f, err := parser.ParseFile(fset, "celsius.go", input, 0) 123 pkg, err := conf.Check("temperature", fset, []*ast.File{f}, nil) 166 fset := token.NewFileSet() 167 f, err := parser.ParseFile(fset, "fib.go", input, 0) 181 pkg, err := conf.Check("fib", fset, []*ast.File{f}, &info) 194 posn := fset.Position(id.Pos() [all...] |
issues_test.go | 24 f, err := parser.ParseFile(fset, "", src, 0) 30 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, nil) // do not crash 49 f, err := parser.ParseFile(fset, "", src, 0) 56 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Types: types}) 97 f, err := parser.ParseFile(fset, "", src, 0) 104 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Types: types}) 114 t.Errorf("%s: got %s; want %s", fset.Position(x.Pos()), tv.Type, want) 131 f, err := parser.ParseFile(fset, "", src, 0) 138 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Defs: defs}) 176 f, err := parser.ParseFile(fset, "", src, 0 [all...] |
resolver_test.go | 121 fset := token.NewFileSet() 124 f, err := parser.ParseFile(fset, fmt.Sprintf("sources[%d]", i), src, parser.DeclarationErrors) 136 _, err := conf.Check("testResolveIdents", fset, files, &Info{Defs: defs, Uses: uses}) 155 t.Errorf("%s: unresolved qualified identifier %s", fset.Position(x.Pos()), x.Name) 159 t.Errorf("%s: unresolved selector %s", fset.Position(s.Sel.Pos()), s.Sel.Name) 172 t.Errorf("%s: Uses[%s] == nil", fset.Position(id.Pos()), id.Name) 191 t.Errorf("%s: unresolved identifier %s", fset.Position(x.Pos()), x.Name) 209 t.Errorf("%s: identifier %s not present in source", fset.Position(x.Pos()), x.Name) 212 t.Errorf("%s: identifier %s not present in source", fset.Position(x.Pos()), x.Name)
|
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)
|
/prebuilts/go/linux-x86/src/go/types/ |
example_test.go | 37 fset := token.NewFileSet() 56 f, err := parser.ParseFile(fset, file.name, file.input, 0) 67 pkg, err := conf.Check("temperature", fset, files, nil) 113 fset := token.NewFileSet() 114 f, err := parser.ParseFile(fset, "celsius.go", input, 0) 123 pkg, err := conf.Check("temperature", fset, []*ast.File{f}, nil) 166 fset := token.NewFileSet() 167 f, err := parser.ParseFile(fset, "fib.go", input, 0) 181 pkg, err := conf.Check("fib", fset, []*ast.File{f}, &info) 194 posn := fset.Position(id.Pos() [all...] |
issues_test.go | 24 f, err := parser.ParseFile(fset, "", src, 0) 30 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, nil) // do not crash 49 f, err := parser.ParseFile(fset, "", src, 0) 56 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Types: types}) 97 f, err := parser.ParseFile(fset, "", src, 0) 104 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Types: types}) 114 t.Errorf("%s: got %s; want %s", fset.Position(x.Pos()), tv.Type, want) 131 f, err := parser.ParseFile(fset, "", src, 0) 138 _, err = conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Defs: defs}) 176 f, err := parser.ParseFile(fset, "", src, 0 [all...] |
resolver_test.go | 121 fset := token.NewFileSet() 124 f, err := parser.ParseFile(fset, fmt.Sprintf("sources[%d]", i), src, parser.DeclarationErrors) 136 _, err := conf.Check("testResolveIdents", fset, files, &Info{Defs: defs, Uses: uses}) 155 t.Errorf("%s: unresolved qualified identifier %s", fset.Position(x.Pos()), x.Name) 159 t.Errorf("%s: unresolved selector %s", fset.Position(s.Sel.Pos()), s.Sel.Name) 172 t.Errorf("%s: Uses[%s] == nil", fset.Position(id.Pos()), id.Name) 191 t.Errorf("%s: unresolved identifier %s", fset.Position(x.Pos()), x.Name) 209 t.Errorf("%s: identifier %s not present in source", fset.Position(x.Pos()), x.Name) 212 t.Errorf("%s: identifier %s not present in source", fset.Position(x.Pos()), x.Name)
|
/prebuilts/go/darwin-x86/src/go/format/ |
format.go | 33 func Node(dst io.Writer, fset *token.FileSet, node interface{}) error { 52 err := config.Fprint(&buf, fset, file) 56 file, err = parser.ParseFile(fset, "", buf.Bytes(), parserMode) 61 ast.SortImports(fset, file) 70 return config.Fprint(dst, fset, node) 83 fset := token.NewFileSet() 84 file, sourceAdj, indentAdj, err := parse(fset, "", src, true) 92 ast.SortImports(fset, file) 95 return format(fset, file, sourceAdj, indentAdj, src, config)
|
format_test.go | 47 fset := token.NewFileSet() 48 file, err := parser.ParseFile(fset, testfile, src, parser.ParseComments) 55 if err = Node(&buf, fset, file); err != nil { 160 // from a real source file, fset will be empty. 161 fset := token.NewFileSet() 164 err = Node(&buf, fset, node)
|
/prebuilts/go/linux-x86/src/go/format/ |
format.go | 33 func Node(dst io.Writer, fset *token.FileSet, node interface{}) error { 52 err := config.Fprint(&buf, fset, file) 56 file, err = parser.ParseFile(fset, "", buf.Bytes(), parserMode) 61 ast.SortImports(fset, file) 70 return config.Fprint(dst, fset, node) 83 fset := token.NewFileSet() 84 file, sourceAdj, indentAdj, err := parse(fset, "", src, true) 92 ast.SortImports(fset, file) 95 return format(fset, file, sourceAdj, indentAdj, src, config)
|
format_test.go | 47 fset := token.NewFileSet() 48 file, err := parser.ParseFile(fset, testfile, src, parser.ParseComments) 55 if err = Node(&buf, fset, file); err != nil { 160 // from a real source file, fset will be empty. 161 fset := token.NewFileSet() 164 err = Node(&buf, fset, node)
|
/prebuilts/go/darwin-x86/src/go/ast/ |
print.go | 31 // If fset != nil, position information is interpreted relative 39 func Fprint(w io.Writer, fset *token.FileSet, x interface{}, f FieldFilter) error { 40 return fprint(w, fset, x, f) 43 func fprint(w io.Writer, fset *token.FileSet, x interface{}, f FieldFilter) (err error) { 47 fset: fset, 72 // Print(fset, x) is the same as Fprint(os.Stdout, fset, x, NotNilFilter). 73 func Print(fset *token.FileSet, x interface{}) error { 74 return Fprint(os.Stdout, fset, x, NotNilFilter [all...] |
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/darwin-x86/src/go/parser/ |
error_test.go | 38 func getFile(fset *token.FileSet, filename string) (file *token.File) { 39 fset.Iterate(func(f *token.File) bool { 51 func getPos(fset *token.FileSet, filename string, offset int) token.Pos { 52 if f := getFile(fset, filename); f != nil { 69 func expectedErrors(t *testing.T, fset *token.FileSet, filename string, src []byte) map[token.Pos]string { 76 s.Init(getFile(fset, filename), src, nil, scanner.ScanComments) 110 func compareErrors(t *testing.T, fset *token.FileSet, expected map[token.Pos]string, found scanner.ErrorList) { 114 pos := getPos(fset, error.Pos.Filename, error.Pos.Offset) 141 t.Errorf("%s: %s\n", fset.Position(pos), msg) 153 fset := token.NewFileSet( [all...] |
interface.go | 76 // file set fset, which must not be nil. 84 func ParseFile(fset *token.FileSet, filename string, src interface{}, mode Mode) (f *ast.File, err error) { 85 if fset == nil { 86 panic("parser.ParseFile: no token.FileSet provided (fset == nil)") 120 p.init(fset, filename, text, mode) 132 // to ParseFile unchanged. Position information is recorded in fset, which 139 func ParseDir(fset *token.FileSet, path string, filter func(os.FileInfo) bool, mode Mode) (pkgs map[string]*ast.Package, first error) { 155 if src, err := ParseFile(fset, filename, nil, mode); err == nil { 177 // be a valid Go (type or value) expression. Specifically, fset must not 180 func ParseExprFrom(fset *token.FileSet, filename string, src interface{}, mode Mode) (ast.Expr, error) [all...] |
/prebuilts/go/linux-x86/src/go/parser/ |
error_test.go | 38 func getFile(fset *token.FileSet, filename string) (file *token.File) { 39 fset.Iterate(func(f *token.File) bool { 51 func getPos(fset *token.FileSet, filename string, offset int) token.Pos { 52 if f := getFile(fset, filename); f != nil { 69 func expectedErrors(t *testing.T, fset *token.FileSet, filename string, src []byte) map[token.Pos]string { 76 s.Init(getFile(fset, filename), src, nil, scanner.ScanComments) 110 func compareErrors(t *testing.T, fset *token.FileSet, expected map[token.Pos]string, found scanner.ErrorList) { 114 pos := getPos(fset, error.Pos.Filename, error.Pos.Offset) 141 t.Errorf("%s: %s\n", fset.Position(pos), msg) 153 fset := token.NewFileSet( [all...] |
interface.go | 76 // file set fset, which must not be nil. 84 func ParseFile(fset *token.FileSet, filename string, src interface{}, mode Mode) (f *ast.File, err error) { 85 if fset == nil { 86 panic("parser.ParseFile: no token.FileSet provided (fset == nil)") 120 p.init(fset, filename, text, mode) 132 // to ParseFile unchanged. Position information is recorded in fset, which 139 func ParseDir(fset *token.FileSet, path string, filter func(os.FileInfo) bool, mode Mode) (pkgs map[string]*ast.Package, first error) { 155 if src, err := ParseFile(fset, filename, nil, mode); err == nil { 177 // be a valid Go (type or value) expression. Specifically, fset must not 180 func ParseExprFrom(fset *token.FileSet, filename string, src interface{}, mode Mode) (ast.Expr, error) [all...] |
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/ |
p11.cpp | 41 float &f(char const* name, Get fget, Set fset, char const* docstr = 0);
|
/prebuilts/go/darwin-x86/src/go/printer/ |
performance_test.go | 23 if err := (&Config{TabIndent | UseSpaces, 8, 0}).Fprint(out, fset, file); err != nil { 37 file, err := parser.ParseFile(fset, filename, src, parser.ParseComments)
|
/prebuilts/go/linux-x86/src/go/printer/ |
performance_test.go | 23 if err := (&Config{TabIndent | UseSpaces, 8, 0}).Fprint(out, fset, file); err != nil { 37 file, err := parser.ParseFile(fset, filename, src, parser.ParseComments)
|
/prebuilts/go/darwin-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 {
|