Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for fromType (0.1 sec)

  1. src/cmd/compile/internal/walk/convert.go

    // an interface.
    func dataWord(conv *ir.ConvExpr, init *ir.Nodes) ir.Node {
    	pos, n := conv.Pos(), conv.X
    	fromType := n.Type()
    
    	// If it's a pointer, it is its own representation.
    	if types.IsDirectIface(fromType) {
    		return n
    	}
    
    	isInteger := fromType.IsInteger()
    	isBool := fromType.IsBoolean()
    	if sc := fromType.SoleComponent(); sc != nil {
    		isInteger = sc.IsInteger()
    		isBool = sc.IsBoolean()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. plugin/pkg/auth/authorizer/node/graph_test.go

    	cases := []struct {
    		desc        string
    		fromType    vertexType
    		toType      vertexType
    		toNamespace string
    		toName      string
    		start       *Graph
    		expect      *Graph
    	}{
    		{
    			// single edge from a configmap to a node, will delete edge and orphaned configmap
    			desc:        "edges and source orphans are deleted, destination orphans are preserved",
    			fromType:    configMapVertexType,
    			toType:      nodeVertexType,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 23:14:19 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/node/graph.go

    // will delete each orphaned "from" vertex, but will never delete the "to" vertex
    func (g *Graph) deleteEdges_locked(fromType, toType vertexType, toNamespace, toName string) {
    	// get the "to" side
    	toVert, exists := g.getVertex_rlocked(toType, toNamespace, toName)
    	if !exists {
    		return
    	}
    
    	// delete all edges between vertices of fromType and toVert
    	neighborsToRemove := []*namedVertex{}
    	edgesToRemove := []graph.Edge{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/link.go

    type AddrPos struct {
    	Addr
    	Pos OperandPos
    }
    
    type OperandPos int8
    
    const (
    	Source OperandPos = iota
    	Destination
    )
    
    // From3Type returns p.GetFrom3().Type, or TYPE_NONE when
    // p.GetFrom3() returns nil.
    func (p *Prog) From3Type() AddrType {
    	from3 := p.GetFrom3()
    	if from3 == nil {
    		return TYPE_NONE
    	}
    	return from3.Type
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top