Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 819 for defn (0.09 sec)

  1. src/text/template/multi_test.go

    	}
    	if _, err := t1.Parse(`{{define "test"}}foo{{end}}`); err != nil {
    		t.Fatalf("parsing test: %s", err)
    	}
    }
    
    func TestEmptyTemplate(t *testing.T) {
    	cases := []struct {
    		defn []string
    		in   string
    		want string
    	}{
    		{[]string{"x", "y"}, "", "y"},
    		{[]string{""}, "once", ""},
    		{[]string{"", ""}, "twice", ""},
    		{[]string{"{{.}}", "{{.}}"}, "twice", "twice"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 10:48:29 UTC 2022
    - 11.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ir/fmt.go

    		fmt.Fprintf(w, " p(%p)", n)
    	}
    
    	if base.Debug.DumpPtrs != 0 && n.Name() != nil && n.Name().Defn != nil {
    		// Useful to see where Defn is set and what node it points to
    		fmt.Fprintf(w, " defn(%p)", n.Name().Defn)
    	}
    
    	if base.Debug.DumpPtrs != 0 && n.Name() != nil && n.Name().Curfn != nil {
    		// Useful to see where Defn is set and what node it points to
    		fmt.Fprintf(w, " curfn(%p)", n.Name().Curfn)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/staticinit/sched.go

    		return true
    	}
    	if rn.Class != ir.PEXTERN || rn.Sym().Pkg != types.LocalPkg {
    		return false
    	}
    	if rn.Defn == nil {
    		// No explicit initialization value. Probably zeroed but perhaps
    		// supplied externally and of unknown value.
    		return false
    	}
    	if rn.Defn.Op() != ir.OAS {
    		return false
    	}
    	if rn.Type().IsString() { // perhaps overwritten by cmd/link -X (#34675)
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/stmt.go

    }
    
    // select
    func tcSelect(sel *ir.SelectStmt) {
    	var def *ir.CommClause
    	lno := ir.SetPos(sel)
    	Stmts(sel.Init())
    	for _, ncase := range sel.Cases {
    		if ncase.Comm == nil {
    			// default
    			if def != nil {
    				base.ErrorfAt(ncase.Pos(), errors.DuplicateDefault, "multiple defaults in select (first at %v)", ir.Line(def))
    			} else {
    				def = ncase
    			}
    		} else {
    			n := Stmt(ncase.Comm)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  5. src/debug/dwarf/type.go

    }
    
    func (t *StructType) String() string {
    	if t.StructName != "" {
    		return t.Kind + " " + t.StructName
    	}
    	return t.Defn()
    }
    
    func (f *StructField) bitOffset() int64 {
    	if f.BitOffset != 0 {
    		return f.BitOffset
    	}
    	return f.DataBitOffset
    }
    
    func (t *StructType) Defn() string {
    	s := t.Kind
    	if t.StructName != "" {
    		s += " " + t.StructName
    	}
    	if t.Incomplete {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/typecheck.go

    		n.X = Expr(n.X)
    		return n
    
    	// statements
    	case ir.OAS:
    		n := n.(*ir.AssignStmt)
    		tcAssign(n)
    
    		// Code that creates temps does not bother to set defn, so do it here.
    		if n.X.Op() == ir.ONAME && ir.IsAutoTmp(n.X) {
    			n.X.Name().Defn = n
    		}
    		return n
    
    	case ir.OAS2:
    		tcAssignList(n.(*ir.AssignListStmt))
    		return n
    
    	case ir.OBREAK,
    		ir.OCONTINUE,
    		ir.ODCL,
    		ir.OGOTO,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ir/func.go

    		clo.Func.RangeParent = outerfn
    		if outerfn.OClosure != nil && outerfn.OClosure.Func.RangeParent != nil {
    			clo.Func.RangeParent = outerfn.OClosure.Func.RangeParent
    		}
    	}
    	fn.OClosure = clo
    
    	fn.Nname.Defn = fn
    	pkg.Funcs = append(pkg.Funcs, fn)
    
    	return fn
    }
    
    // IsFuncPCIntrinsic returns whether n is a direct call of internal/abi.FuncPCABIxxx functions.
    func IsFuncPCIntrinsic(n *CallExpr) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  8. src/internal/coverage/defs.go

    Than McIntosh <******@****.***> 1691585441 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/tools/tflite_op_coverage_spec_getters_gen.cc

    }
    
    void EmitStaticQuantOp(std::vector<Record *> &defs, raw_ostream *ostream) {
      raw_ostream &os = *ostream;
      llvm::sort(defs, LessRecord());
    
      EmitStaticInt8PerAxisQuantOp(defs, os);
      EmitStaticInt8PerTensorQuantOp(defs, os);
      EmitStaticUInt8PerAxisQuantOp(defs, os);
      EmitStaticUInt8PerTensorQuantOp(defs, os);
    }
    
    void EmitStaticQuantWithInt16ActOp(std::vector<Record *> &defs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/issues_test.go

    `
    	const want = `L3 defs func p._()
    L4 defs const w untyped int
    L5 defs var x int
    L5 defs var y int
    L6 defs var z int
    L6 uses const w untyped int
    L6 uses var x int
    L7 uses var x int
    L7 uses var y int
    L7 uses var z int`
    
    	// don't abort at the first error
    	conf := Config{Error: func(err error) { t.Log(err) }}
    	defs := make(map[*syntax.Name]Object)
    	uses := make(map[*syntax.Name]Object)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top