Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 234 for Parsing (0.65 sec)

  1. src/cmd/dist/buildtag_test.go

    	{"compiler_bootstrap", false, nil},
    	{"cmd_go_bootstrap", true, nil},
    	{"syntax(error", false, fmt.Errorf("parsing //go:build line: unexpected (")},
    	{"(gc", false, fmt.Errorf("parsing //go:build line: missing )")},
    	{"gc gc", false, fmt.Errorf("parsing //go:build line: unexpected tag")},
    	{"(gc))", false, fmt.Errorf("parsing //go:build line: unexpected )")},
    }
    
    func TestBuildParser(t *testing.T) {
    	for _, tt := range buildParserTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 25 00:02:52 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  2. src/cmd/dist/buildtag.go

    }
    
    // val is the value type result of parsing.
    // We don't keep a parse tree, just the value of the expression.
    type val bool
    
    // exprToken describes a single token in the input.
    // Prefix operators define a prefix func that parses the
    // upcoming value. Binary operators define an infix func
    // that combines two values according to the operator.
    // In that case, the parsing loop parses the two values.
    type exprToken struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 03:35:04 UTC 2021
    - 3K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/operand_test.go

    func newParser(goarch string) *Parser {
    	architecture, ctxt := setArch(goarch)
    	return NewParser(ctxt, architecture, nil)
    }
    
    // tryParse executes parse func in panicOnError=true context.
    // parse is expected to call any parsing methods that may panic.
    // Returns error gathered from recover; nil if no parse errors occurred.
    //
    // For unexpected panics, calls t.Fatal.
    func tryParse(t *testing.T, parse func()) (err error) {
    	panicOnError = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  4. src/archive/tar/strconv_test.go

    	for _, v := range vectors {
    		var p parser
    		got := p.parseNumeric([]byte(v.in))
    		ok := (p.err == nil)
    		if ok != v.ok {
    			if v.ok {
    				t.Errorf("parseNumeric(%q): got parsing failure, want success", v.in)
    			} else {
    				t.Errorf("parseNumeric(%q): got parsing success, want failure", v.in)
    			}
    		}
    		if ok && got != v.want {
    			t.Errorf("parseNumeric(%q): got %d, want %d", v.in, got, v.want)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 09 05:28:50 UTC 2021
    - 14K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/profile/legacy_java_profile.go

    				return nil, nil, fmt.Errorf("parsing sample %s: %v", line, err)
    			}
    			if s.Value[1], err = strconv.ParseInt(value2, 0, 64); err != nil {
    				return nil, nil, fmt.Errorf("parsing sample %s: %v", line, err)
    			}
    
    			switch pType {
    			case "heap":
    				const javaHeapzSamplingRate = 524288 // 512K
    				if s.Value[0] == 0 {
    					return nil, nil, fmt.Errorf("parsing sample %s: second value must be non-zero", line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. src/cmd/internal/pgo/pprof.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package pgo contains the compiler-agnostic portions of PGO profile handling.
    // Notably, parsing pprof profiles and serializing/deserializing from a custom
    // intermediate representation.
    package pgo
    
    import (
    	"errors"
    	"fmt"
    	"internal/profile"
    	"io"
    	"sort"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/testdata/issue43527.go

            _[A B, /* ERROR missing type parameter name */ interface{}, C, interface{}] int
            _[A B, C interface{}, D, /* ERROR missing type parameter name */ interface{}] int
    )
    
    // function type parameters use the same parsing routine - just have a couple of tests
    
    func _[A, B /* ERROR missing type constraint */ ]() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 17:49:03 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. src/cmd/internal/pgo/pgo.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package pgo contains the compiler-agnostic portions of PGO profile handling.
    // Notably, parsing pprof profiles and serializing/deserializing from a custom
    // intermediate representation.
    package pgo
    
    // Profile contains the processed data from the PGO profile.
    type Profile struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. src/cmd/internal/pgo/serialize.go

    		if err != nil {
    			return written, err
    		}
    	}
    
    	if err := bw.Flush(); err != nil {
    		return written, err
    	}
    
    	// No need to serialize TotalWeight, it can be trivially recomputed
    	// during parsing.
    
    	return written, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. src/cmd/go/internal/base/path.go

    var cwdOnce sync.Once
    
    // UncachedCwd returns the current working directory.
    // Most callers should use Cwd, which caches the result for future use.
    // UncachedCwd is appropriate to call early in program startup before flag parsing,
    // because the -C flag may change the current directory.
    func UncachedCwd() string {
    	wd, err := os.Getwd()
    	if err != nil {
    		Fatalf("cannot determine current directory: %v", err)
    	}
    	return wd
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 20 19:17:27 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top