Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 95 for parseable (0.23 sec)

  1. src/cmd/vendor/golang.org/x/text/internal/language/tags.go

    func MustParse(s string) Tag {
    	t, err := Parse(s)
    	if err != nil {
    		panic(err)
    	}
    	return t
    }
    
    // MustParseBase is like ParseBase, but panics if the given base cannot be parsed.
    // It simplifies safe initialization of Base values.
    func MustParseBase(s string) Language {
    	b, err := ParseBase(s)
    	if err != nil {
    		panic(err)
    	}
    	return b
    }
    
    // MustParseScript is like ParseScript, but panics if the given script cannot be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. src/go/ast/example_test.go

    	src := `
    package p
    const c = 1.0
    var X = f(3.14)*2 + c
    `
    
    	// Create the AST by parsing src.
    	fset := token.NewFileSet() // positions are relative to fset
    	f, err := parser.ParseFile(fset, "src.go", src, 0)
    	if err != nil {
    		panic(err)
    	}
    
    	// Inspect the AST and print all identifiers and literals.
    	ast.Inspect(f, func(n ast.Node) bool {
    		var s string
    		switch x := n.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. src/cmd/gofmt/internal.go

    	file *ast.File,
    	sourceAdj func(src []byte, indent int) []byte,
    	indentAdj int,
    	err error,
    ) {
    	// Try as whole source file.
    	file, err = parser.ParseFile(fset, filename, src, parserMode)
    	// If there's no error, return. If the error is that the source file didn't begin with a
    	// package line and source fragments are ok, fall through to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 28 14:23:08 UTC 2020
    - 5K bytes
    - Viewed (0)
  4. src/go/format/internal.go

    	file *ast.File,
    	sourceAdj func(src []byte, indent int) []byte,
    	indentAdj int,
    	err error,
    ) {
    	// Try as whole source file.
    	file, err = parser.ParseFile(fset, filename, src, parserMode)
    	// If there's no error, return. If the error is that the source file didn't begin with a
    	// package line and source fragments are ok, fall through to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 28 14:23:08 UTC 2020
    - 5K bytes
    - Viewed (0)
  5. platforms/ide/ide/src/testFixtures/groovy/org/gradle/plugins/ide/AbstractIdeIntegrationTest.groovy

            def file = options?.project ? file(options.project, filename) : file(filename)
            if (options?.print) { println file.text }
            file
        }
    
        protected parseFile(Map options, String filename) {
            def file = getFile(options, filename)
            new XmlSlurper().parse(file)
        }
    
        protected static void createJavaSourceDirs(TestFile buildFile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. src/cmd/fix/main.go

    		return err
    	}
    
    	file, err := parser.ParseFile(fset, filename, src, parserMode)
    	if err != nil {
    		return err
    	}
    
    	// Make sure file is in canonical format.
    	// This "fmt" pseudo-fix cannot be disabled.
    	newSrc, err := gofmtFile(file)
    	if err != nil {
    		return err
    	}
    	if !bytes.Equal(newSrc, src) {
    		newFile, err := parser.ParseFile(fset, filename, newSrc, parserMode)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/internal/types/errors/generrordocs.go

    		}
    	})
    	log.Printf("output directory: %s\n", outDir)
    }
    
    func walkCodes(f func(string, *ast.ValueSpec)) {
    	fset := token.NewFileSet()
    	file, err := parser.ParseFile(fset, "codes.go", nil, parser.ParseComments)
    	if err != nil {
    		log.Fatalf("ParseFile failed: %s", err)
    	}
    	conf := Config{Importer: importer.Default()}
    	info := &Info{
    		Types: make(map[ast.Expr]TypeAndValue),
    		Defs:  make(map[*ast.Ident]Object),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 03:14:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/syntax.go

    				return
    			}
    			panic(p)
    		}
    	}()
    
    	var p parser
    	p.init(base, src, errh, pragh, mode)
    	p.next()
    	return p.fileOrNil(), p.first
    }
    
    // ParseFile behaves like Parse but it reads the source from the named file.
    func ParseFile(filename string, errh ErrorHandler, pragh PragmaHandler, mode Mode) (*File, error) {
    	f, err := os.Open(filename)
    	if err != nil {
    		if errh != nil {
    			errh(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  9. tools/docker-builder/dockerfile/parse.go

    	Flags     []string // Any flags such as `--from=...` for `COPY`.
    	Value     []string // The contents of the command (ex: `ubuntu:xenial`)
    }
    
    // parseFile parses a Dockerfile from a filename.
    func parseFile(filename string) ([]Command, error) {
    	file, err := os.Open(filename)
    	if err != nil {
    		return nil, err
    	}
    	defer file.Close()
    
    	res, err := parser.Parse(file)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/dump_graph.h

        return *this;
      }
    
      // Enable printing of debug information. If 'pretty_form' is set to true,
      // debug information is printed in a more readable 'pretty' form but this
      // pretty form is not parsable (so only for human readability).
      MlirDumpConfig& emit_location_information(bool pretty_form = false) {
        this->op_printing_flags.enableDebugInfo(/*enable=*/true, pretty_form);
        return *this;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Dec 24 09:43:29 UTC 2022
    - 2.6K bytes
    - Viewed (0)
Back to top