Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 74 for newEvent (0.14 sec)

  1. src/go/types/generate_test.go

    // isIdent reports whether x is an identifier with the given name.
    func isIdent(x ast.Node, name string) bool {
    	return asIdent(x, name) != nil
    }
    
    // newIdent returns a new identifier with the given position and name.
    func newIdent(pos token.Pos, name string) *ast.Ident {
    	id := ast.NewIdent(name)
    	id.NamePos = pos
    	return id
    }
    
    // insert inserts x at list[at] and moves the remaining elements up.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  2. src/cmd/fix/netipv6zone.go

    				}
    				switch i {
    				case 0:
    					cl.Elts[i] = &ast.KeyValueExpr{
    						Key:   ast.NewIdent("IP"),
    						Value: e,
    					}
    				case 1:
    					if elit, ok := e.(*ast.BasicLit); ok && elit.Value == "0" {
    						cl.Elts = append(cl.Elts[:i], cl.Elts[i+1:]...)
    					} else {
    						cl.Elts[i] = &ast.KeyValueExpr{
    							Key:   ast.NewIdent("Port"),
    							Value: e,
    						}
    					}
    				}
    				fixed = true
    			}
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  3. src/cmd/fix/printerconfig.go

    				if _, ok := e.(*ast.KeyValueExpr); ok {
    					break
    				}
    				switch i {
    				case 0:
    					cl.Elts[i] = &ast.KeyValueExpr{
    						Key:   ast.NewIdent("Mode"),
    						Value: e,
    					}
    				case 1:
    					cl.Elts[i] = &ast.KeyValueExpr{
    						Key:   ast.NewIdent("Tabwidth"),
    						Value: e,
    					}
    				}
    				fixed = true
    			}
    		}
    	})
    	return fixed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  4. pkg/envoy/agent_test.go

    	return nil
    }
    
    // TestStartExit starts a proxy and ensures the agent exits once the proxy exits
    func TestStartExit(t *testing.T) {
    	ctx := context.Background()
    	done := make(chan struct{})
    	a := NewAgent(TestProxy{}, 0, 0, "", 0, 0, 0, true)
    	go func() {
    		a.Run(ctx)
    		done <- struct{}{}
    	}()
    	<-done
    }
    
    // TestStartTwiceStop applies three configs and validates that cleanups are called in order
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 19 20:22:09 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. src/go/doc/exports.go

    func filterIdentList(list []*ast.Ident) []*ast.Ident {
    	j := 0
    	for _, x := range list {
    		if token.IsExported(x.Name) {
    			list[j] = x
    			j++
    		}
    	}
    	return list[0:j]
    }
    
    var underscore = ast.NewIdent("_")
    
    func filterCompositeLit(lit *ast.CompositeLit, filter Filter, export bool) {
    	n := len(lit.Elts)
    	lit.Elts = filterExprList(lit.Elts, filter, export)
    	if len(lit.Elts) < n {
    		lit.Incomplete = true
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  6. pkg/envoy/agent.go

    )
    
    var errAbort = errors.New("proxy aborted")
    
    const errOutOfMemory = "signal: killed"
    
    var activeConnectionCheckDelay = 1 * time.Second
    
    // NewAgent creates a new proxy agent for the proxy start-up and clean-up functions.
    func NewAgent(proxy Proxy, terminationDrainDuration, minDrainDuration time.Duration, localhost string,
    	adminPort, statusPort, prometheusPort int, exitOnZeroActiveConnections bool,
    ) *Agent {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 24 16:04:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. src/go/doc/example.go

    			// Copy the FuncDecl, as it may be used elsewhere.
    			newF := *f
    			newF.Name = ast.NewIdent("main")
    			newF.Body, comments = stripOutputComment(f.Body, comments)
    			d = &newF
    		}
    		decls = append(decls, d)
    	}
    
    	// Copy the File, as it may be used elsewhere.
    	f := *file
    	f.Name = ast.NewIdent("main")
    	f.Decls = decls
    	f.Comments = comments
    	return &f
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  8. src/go/doc/reader.go

    	origPos := newField.Type.Pos()
    	_, origRecvIsPtr := newField.Type.(*ast.StarExpr)
    	newIdent := &ast.Ident{NamePos: origPos, Name: recvTypeName}
    	var typ ast.Expr = newIdent
    	if !embeddedIsPtr && origRecvIsPtr {
    		newIdent.NamePos++ // '*' is one character
    		typ = &ast.StarExpr{Star: origPos, X: newIdent}
    	}
    	newField.Type = typ
    
    	// copy existing receiver field list and set new receiver field
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  9. pkg/istio-agent/agent.go

    }
    
    // NewAgent hosts the functionality for local SDS and XDS. This consists of the local SDS server and
    // associated clients to sign certificates (when not using files), and the local XDS proxy (including
    // health checking for VMs and DNS proxying).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  10. src/go/types/struct.go

    			pos := f.Type.Pos() // position of type, for errors
    			name := embeddedFieldIdent(f.Type)
    			if name == nil {
    				check.errorf(f.Type, InvalidSyntaxTree, "embedded field type %s has no name", f.Type)
    				name = ast.NewIdent("_")
    				name.NamePos = pos
    				addInvalid(name)
    				continue
    			}
    			add(name, true) // struct{p.T} field has position of T
    
    			// Because we have a name, typ must be of the form T or *T, where T is the name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top