Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 85 for newNames (0.36 sec)

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

    // Common productions
    
    func (p *parser) name() *Name {
    	// no tracing to avoid overly verbose output
    
    	if p.tok == _Name {
    		n := NewName(p.pos(), p.lit)
    		p.next()
    		return n
    	}
    
    	n := NewName(p.pos(), "_")
    	p.syntaxError("expected name")
    	p.advance()
    	return n
    }
    
    // IdentifierList = identifier { "," identifier } .
    // The first name must be provided.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  2. pkg/config/analysis/README.md

        // assume that the namespace is not blank, except for cluster-scoped resources.
        for i, gwName := range vs.Gateways {
            if !c.Exists(collections.Gateway, resource.NewName(r.Metadata.FullName.Namespace, gwName)) {
                // Messages are defined in galley/pkg/config/analysis/msg/messages.yaml
                // From there, code is generated for each message type, including a constructor function
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/ambient/waypoints.go

    }
    
    func makeWaypoint(
    	gateway *v1beta1.Gateway,
    	gatewayClass *v1beta1.GatewayClass,
    	serviceAccounts []string,
    	trafficType string,
    ) *Waypoint {
    	return &Waypoint{
    		Named:           krt.NewNamed(gateway),
    		Addresses:       getGatewayAddrs(gateway),
    		DefaultBinding:  makeInboundBinding(gateway, gatewayClass),
    		TrafficType:     trafficType,
    		ServiceAccounts: slices.Sort(serviceAccounts),
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/object.go

    // The remaining arguments set the attributes found with all Objects.
    //
    // The typ argument may be a defined (Named) type or an alias type.
    // It may also be nil such that the returned TypeName can be used as
    // argument for NewNamed, which will set the TypeName's type as a side-
    // effect.
    func NewTypeName(pos syntax.Pos, pkg *Package, name string, typ Type) *TypeName {
    	return &TypeName{object{nil, pos, pkg, name, typ, 0, colorFor(typ), nopos}}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/shape_inference.cc

              NodeDef const_def;
              const_def.set_op("Const");
              Node* var_node;
              TF_RETURN_IF_ERROR(n->input_node(0, &var_node));
              const_def.set_name(
                  graph->NewName(absl::StrCat("var_shape_", var_node->name())));
              DataType dtype = n->output_type(0);
              AddNodeAttr("dtype", dtype, &const_def);
              TensorProto value;
              value.set_dtype(dtype);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/rangefunc/rewrite.go

    	r.stateVarCount++
    
    	name := fmt.Sprintf("#state%d", r.stateVarCount)
    	typ := r.int.Type()
    	obj := types2.NewVar(pos, r.pkg, name, typ)
    	n := syntax.NewName(pos, name)
    	setValueType(n, typ)
    	r.info.Defs[n] = obj
    
    	return obj, &syntax.VarDecl{NameList: []*syntax.Name{n}, Values: r.stateConst(abi.RF_READY)}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  7. src/go/types/issues_test.go

    	// }
    	//
    	// type T2 struct {
    	//         _ struct {
    	//                 _ T2
    	//         }
    	// }
    	n1 := NewTypeName(nopos, nil, "T1", nil)
    	T1 := NewNamed(n1, nil, nil)
    	n2 := NewTypeName(nopos, nil, "T2", nil)
    	T2 := NewNamed(n2, nil, nil)
    	s1 := NewStruct([]*Var{NewField(nopos, nil, "_", T2, false)}, nil)
    	T1.SetUnderlying(s1)
    	s2 := NewStruct([]*Var{NewField(nopos, nil, "_", T2, false)}, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/parser_test.go

    			t.Errorf("%s: got col = %d; want %d", test.src, col, test.col)
    		}
    	}
    }
    
    // Test that typical uses of UnpackListExpr don't allocate.
    func TestUnpackListExprAllocs(t *testing.T) {
    	var x Expr = NewName(Pos{}, "x")
    	allocs := testing.AllocsPerRun(1000, func() {
    		list := UnpackListExpr(x)
    		if len(list) != 1 || list[0] != x {
    			t.Fatalf("unexpected result")
    		}
    	})
    
    	if allocs > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 16:30:19 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. tests/upsert_test.go

    	} else if langs[0].Name != "upsert-new" {
    		t.Errorf("should update name on conflict, but got name %+v", langs[0].Name)
    	}
    
    	lang = Language{Code: "upsert", Name: "Upsert-Newname"}
    	if err := DB.Clauses(clause.OnConflict{UpdateAll: true}).Create(&lang).Error; err != nil {
    		t.Fatalf("failed to upsert, got %v", err)
    	}
    
    	var result Language
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Sep 05 07:39:19 UTC 2022
    - 11.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/issues_test.go

    	// }
    	//
    	// type T2 struct {
    	//         _ struct {
    	//                 _ T2
    	//         }
    	// }
    	n1 := NewTypeName(nopos, nil, "T1", nil)
    	T1 := NewNamed(n1, nil, nil)
    	n2 := NewTypeName(nopos, nil, "T2", nil)
    	T2 := NewNamed(n2, nil, nil)
    	s1 := NewStruct([]*Var{NewField(nopos, nil, "_", T2, false)}, nil)
    	T1.SetUnderlying(s1)
    	s2 := NewStruct([]*Var{NewField(nopos, nil, "_", T2, false)}, nil)
    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