Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isHit (4.29 sec)

  1. src/go/printer/printer.go

    // writeString writes the string s to p.output and updates p.pos, p.out,
    // and p.last. If isLit is set, s is escaped w/ tabwriter.Escape characters
    // to protect s from being interpreted by the tabwriter.
    //
    // Note: writeString is only used to write Go tokens, literals, and
    // comments, all of which must be written literally. Thus, it is correct
    // to always set isLit = true. However, setting it explicitly only when
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/noderesources/fit.go

    	return framework.QueueSkip, nil
    }
    
    // isFit checks if the pod fits the node. If the node is nil, it returns false.
    // It constructs a fake NodeInfo object for the node and checks if the pod fits the node.
    func isFit(pod *v1.Pod, node *v1.Node) bool {
    	if node == nil {
    		return false
    	}
    	nodeInfo := framework.NewNodeInfo()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/complit.go

    			}
    
    		case ir.OARRAYLIT, ir.OSTRUCTLIT:
    			value := value.(*ir.CompLitExpr)
    			fixedlit(ctxt, kind, value, a, init)
    			continue
    		}
    
    		islit := ir.IsConstNode(value)
    		if (kind == initKindStatic && !islit) || (kind == initKindDynamic && islit) {
    			continue
    		}
    
    		// build list of assignments: var[index] = expr
    		ir.SetPos(a)
    		as := ir.NewAssignStmt(base.Pos, a, value)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
Back to top