Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 45 of 45 for parseable (0.25 sec)

  1. pkg/util/iptables/testing/fake.go

    		return false, err
    	}
    
    	rule := "-A " + string(chain) + " " + strings.Join(args, " ")
    	for _, r := range c.Rules {
    		if r.Raw == rule {
    			return true, nil
    		}
    	}
    
    	parsed, err := ParseRule(rule, false)
    	if err != nil {
    		return false, err
    	}
    
    	if position == iptables.Append {
    		c.Rules = append(c.Rules, parsed)
    	} else {
    		c.Rules = append([]*Rule{parsed}, c.Rules...)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. src/cmd/internal/dwarf/putvarabbrevgen_test.go

    		return string(out)
    	}
    
    	if spvagenfile != slurp(pvagenfile) {
    		t.Error(pvagenfile + " is out of date")
    	}
    
    }
    
    func pvagenerate(t *testing.T) string {
    	var fset token.FileSet
    	f, err := parser.ParseFile(&fset, "./dwarf.go", nil, parser.ParseComments)
    	if err != nil {
    		t.Fatal(err)
    	}
    	cm := ast.NewCommentMap(&fset, f, f.Comments)
    	abbrevs := make(map[string]int)
    	funcs := map[string]ast.Stmt{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag.go

    		if err := checkOtherFile(pass, name); err != nil {
    			return nil, err
    		}
    	}
    	for _, name := range pass.IgnoredFiles {
    		if strings.HasSuffix(name, ".go") {
    			f, err := parser.ParseFile(pass.Fset, name, nil, parser.ParseComments|parser.SkipObjectResolution)
    			if err != nil {
    				// Not valid Go source code - not our job to diagnose, so ignore.
    				return nil, nil
    			}
    			checkGoFile(pass, f)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/printer_test.go

    package syntax
    
    import (
    	"fmt"
    	"io"
    	"os"
    	"strings"
    	"testing"
    )
    
    func TestPrint(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping test in short mode")
    	}
    
    	ast, _ := ParseFile(*src_, func(err error) { t.Error(err) }, nil, 0)
    
    	if ast != nil {
    		Fprint(testOut(), ast, LineForm)
    		fmt.Println()
    	}
    }
    
    type shortBuffer struct {
    	buf []byte
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 17:08:18 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. src/go/types/example_test.go

    func (c *Celsius) SetF(f float64) { *c = Celsius(f - 32 / 9 * 5) }
    
    type S struct { I; m int }
    type I interface { m() byte }
    `
    	fset := token.NewFileSet()
    	f, err := parser.ParseFile(fset, "celsius.go", input, 0)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	// Type-check a package consisting of this file.
    	// Type information for the imported packages
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top