Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,608 for defn (0.12 sec)

  1. test/ken/rob2.go

    var tokenlen int = 0
    
    const EOF int = -1
    
    func main() {
    	var list *Slist
    
    	OpenFile()
    	for {
    		list = Parse()
    		if list == nil {
    			break
    		}
    		r := list.Print()
    		list.Free()
    		if r != "(defn foo (add 12 34))" {
    			panic(r)
    		}
    		break
    	}
    }
    
    func (slist *Slist) PrintOne(doparen bool) string {
    	if slist == nil {
    		return ""
    	}
    	var r string
    	if slist.isatom {
    		if slist.isstring {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 4.3K bytes
    - Viewed (0)
  2. src/html/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: Tue Sep 06 15:48:16 UTC 2022
    - 8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssagen/nowb.go

    		return
    	}
    	fn := n.Fun.(*ir.Name)
    	if fn.Class != ir.PFUNC || fn.Defn == nil {
    		return
    	}
    	if types.RuntimeSymName(fn.Sym()) != "systemstack" {
    		return
    	}
    
    	var callee *ir.Func
    	arg := n.Args[0]
    	switch arg.Op() {
    	case ir.ONAME:
    		arg := arg.(*ir.Name)
    		callee = arg.Defn.(*ir.Func)
    	case ir.OCLOSURE:
    		arg := arg.(*ir.ClosureExpr)
    		callee = arg.Func
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 17:29:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/dcl.go

    // Target.Funcs.
    //
    // Before returning, it sets CurFunc to fn. When the caller is done
    // constructing fn, it must call FinishFuncBody to restore CurFunc.
    func DeclFunc(fn *ir.Func) {
    	fn.DeclareParams(true)
    	fn.Nname.Defn = fn
    	Target.Funcs = append(Target.Funcs, fn)
    
    	funcStack = append(funcStack, ir.CurFunc)
    	ir.CurFunc = fn
    }
    
    // FinishFuncBody restores ir.CurFunc to its state before the last
    // call to DeclFunc.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:15:50 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. src/debug/dwarf/type_test.go

    			typ, err := d.Type(e.Offset)
    			if err != nil {
    				t.Fatal("d.Type:", err)
    			}
    			t1 := typ.(*TypedefType)
    			var typstr string
    			if ts, ok := t1.Type.(*StructType); ok {
    				typstr = ts.Defn()
    			} else {
    				typstr = t1.Type.String()
    			}
    
    			if want, ok := testcases[t1.Name]; ok {
    				if seen[t1.Name] {
    					t.Errorf("multiple definitions for %s", t1.Name)
    				}
    				seen[t1.Name] = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/typeconverter_test.go

    	myTypes := []smdschema.TypeDef{
    		{
    			Name: "def0",
    			Atom: smdschema.Atom{},
    		},
    		{
    			Name: "def0.1",
    			Atom: smdschema.Atom{},
    		},
    		{
    			Name: "def0.2",
    			Atom: smdschema.Atom{},
    		},
    		{
    			Name: "def1",
    			Atom: smdschema.Atom{},
    		},
    		{
    			Name: "def2",
    			Atom: smdschema.Atom{},
    		},
    		{
    			Name: "def3",
    			Atom: smdschema.Atom{},
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  7. src/cmd/internal/src/pos_test.go

    		{makeLico(0, 1).withXlogue(PosDefaultLogue), ":0:1" + defs + defp, 0, 1},
    		{makeLico(0, 1).withXlogue(PosPrologueEnd), ":0:1" + defs + pro, 0, 1},
    		{makeLico(0, 1).withXlogue(PosEpilogueBegin), ":0:1" + defs + epi, 0, 1},
    
    		{makeLico(1, 0).withXlogue(PosDefaultLogue), ":1" + defs + defp, 1, 0},
    		{makeLico(1, 0).withXlogue(PosPrologueEnd), ":1" + defs + pro, 1, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 14 23:50:26 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/defs.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    #include "tensorflow/compiler/jit/defs.h"
    
    #include <atomic>
    
    namespace tensorflow {
    
    const char* const kXlaMustCompileAttr = "_XlaMustCompile";
    
    const char* const kXlaCompileAttr = "_XlaCompile";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 07 01:03:32 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/defs.h

    George Karpenkov <******@****.***> 1638837757 -0800
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 07 01:03:32 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue24161arg/def.go

    Austin Clements <******@****.***> 1683224724 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 382 bytes
    - Viewed (0)
Back to top