Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 57 for from (0.08 sec)

  1. src/cmd/compile/internal/syntax/pos.go

    func (pos Pos) Line() uint     { return uint(pos.line) }
    func (pos Pos) Col() uint      { return uint(pos.col) }
    
    // FileBase returns the PosBase of the file containing pos,
    // skipping over intermediate PosBases from //line directives.
    // The result is nil if pos doesn't have a file base.
    func (pos Pos) FileBase() *PosBase {
    	b := pos.base
    	for b != nil && b != b.pos.base {
    		b = b.pos.base
    	}
    	// b == nil || b == b.pos.base
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/labels.go

    					err.addAltDecl(alt)
    					err.report()
    					// ok to continue
    				} else {
    					b.insert(s)
    					check.recordDef(s.Label, lbl)
    				}
    				// resolve matching forward jumps and remove them from fwdJumps
    				i := 0
    				for _, jmp := range fwdJumps {
    					if jmp.Label.Value == name {
    						// match
    						lbl.used = true
    						check.recordUse(jmp.Label, lbl)
    						if jumpsOverVarDecl(jmp) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. src/cmd/dist/testjson.go

    			f.lineBuf.Write(b)
    			break
    		}
    		var line []byte
    		if f.lineBuf.Len() > 0 {
    			// We have buffered data. Add the rest of the line from b and
    			// process the complete line.
    			f.lineBuf.Write(b[:nl+1])
    			line = f.lineBuf.Bytes()
    		} else {
    			// Process a complete line from b.
    			line = b[:nl+1]
    		}
    		b = b[nl+1:]
    		f.process(line)
    		f.lineBuf.Reset()
    	}
    
    	return bn, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/issues_test.go

    		"package p; var _ = T{@x[i]: 0}",
    		"package p; var _ = T{@f(1, 2, 3): 0}",
    		"package p; var _ = T{@a + f(b) + <-ch: 0}",
    	}
    
    	for _, src := range tests {
    		// identify column position of @ and remove it from src
    		i := strings.Index(src, "@")
    		if i < 0 {
    			t.Errorf("%s: invalid test case (missing @)", src)
    			continue
    		}
    		src = src[:i] + src[i+1:]
    		want := colbase + uint(i)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/pgo_devirtualize_test.go

    		//	callee: "mult.MultClosure.func1",
    		//},
    	}
    
    	testPGODevirtualize(t, dir, want, preProfFileName)
    }
    
    // Regression test for https://go.dev/issue/65615. If a target function changes
    // from non-generic to generic we can't devirtualize it (don't know the type
    // parameters), but the compiler should not crash.
    func TestLookupFuncGeneric(t *testing.T) {
    	wd, err := os.Getwd()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 21:30:35 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. tests/tests_test.go

    		// SQLCMDPASSWORD=LoremIpsum86 sqlcmd -U sa -S localhost:9930
    		// CREATE DATABASE gorm;
    		// GO
    		// CREATE LOGIN gorm WITH PASSWORD = 'LoremIpsum86';
    		// CREATE USER gorm FROM LOGIN gorm;
    		// ALTER SERVER ROLE sysadmin ADD MEMBER [gorm];
    		// GO
    		log.Println("testing sqlserver...")
    		if dbDSN == "" {
    			dbDSN = sqlserverDSN
    		}
    		db, err = gorm.Open(sqlserver.Open(dbDSN), cfg)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. utils/utils.go

    		s = dir
    	}
    	return filepath.ToSlash(s) + "/"
    }
    
    // FileWithLineNum return the file name and line number of the current file
    func FileWithLineNum() string {
    	pcs := [13]uintptr{}
    	// the third caller usually from gorm internal
    	len := runtime.Callers(3, pcs[:])
    	frames := runtime.CallersFrames(pcs[:len])
    	for i := 0; i < len; i++ {
    		// second return value is "more", not "ok"
    		frame, _ := frames.Next()
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 22 06:43:02 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/errsupport.go

    		missing      // no object found
    		misspelled   // found object with different spelling
    		unexported   // found object with name differing only in first letter
    		inaccessible // found object with matching name but inaccessible from the current package
    	)
    
    	// determine case
    	e := missing
    	var alt string // alternative spelling of selector; if any
    	if obj != nil {
    		alt = obj.Name()
    		if obj.Pkg() == check.pkg {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 16:41:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. src/cmd/go/internal/par/work.go

    	w.mu.Lock()
    	w.init()
    	if !w.added[item] {
    		w.added[item] = true
    		w.todo = append(w.todo, item)
    		if w.waiting > 0 {
    			w.wait.Signal()
    		}
    	}
    	w.mu.Unlock()
    }
    
    // Do runs f in parallel on items from the work set,
    // with at most n invocations of f running at a time.
    // It returns when everything added to the work set has been processed.
    // At least one item should have been added to the work set
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:54:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/help/help.go

    	{{.UsageLine}}
    
    {{end}}{{.Long | trim}}
    
    
    {{end}}{{end}}`
    
    // commentWriter writes a Go comment to the underlying io.Writer,
    // using line comment form (//).
    type commentWriter struct {
    	W            io.Writer
    	wroteSlashes bool // Wrote "//" at the beginning of the current line.
    }
    
    func (c *commentWriter) Write(p []byte) (int, error) {
    	var n int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top