Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ParseFile (0.07 sec)

  1. src/cmd/api/main_test.go

    	}
    	sort.Strings(fs)
    	return
    }
    
    var parsedFileCache = make(map[string]*ast.File)
    
    func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
    	filename := filepath.Join(dir, file)
    	if f := parsedFileCache[filename]; f != nil {
    		return f, nil
    	}
    
    	f, err := parser.ParseFile(fset, filename, nil, parser.ParseComments)
    	if err != nil {
    		return nil, err
    	}
    	parsedFileCache[filename] = f
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  2. src/cmd/cgo/ast.go

    import (
    	"fmt"
    	"go/ast"
    	"go/format"
    	"go/parser"
    	"go/scanner"
    	"go/token"
    	"os"
    	"strings"
    )
    
    func parse(name string, src []byte, flags parser.Mode) *ast.File {
    	ast1, err := parser.ParseFile(fset, name, src, flags)
    	if err != nil {
    		if list, ok := err.(scanner.ErrorList); ok {
    			// If err is a scanner.ErrorList, its String will print just
    			// the first error and then (+n more errors).
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 14 15:47:06 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. api/go1.txt

    pkg go/parser, const Trace Mode
    pkg go/parser, func ParseDir(*token.FileSet, string, func(os.FileInfo) bool, Mode) (map[string]*ast.Package, error)
    pkg go/parser, func ParseExpr(string) (ast.Expr, error)
    pkg go/parser, func ParseFile(*token.FileSet, string, interface{}, Mode) (*ast.File, error)
    pkg go/parser, type Mode uint
    pkg go/printer, const RawFormat Mode
    pkg go/printer, const SourcePos Mode
    pkg go/printer, const TabIndent Mode
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top