Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 121 for Tok (0.04 sec)

  1. src/main/java/jcifs/smb1/Config.java

            String p = getProperty( key );
            if( p != null ) {
                StringTokenizer tok = new StringTokenizer( p, delim );
                int len = tok.countTokens();
                InetAddress[] arr = new InetAddress[len];
                for( int i = 0; i < len; i++ ) {
                    String addr = tok.nextToken();
                    try {
                        arr[i] = InetAddress.getByName( addr );
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 11.3K bytes
    - Viewed (0)
  2. src/go/parser/resolver_test.go

    	decls = make(map[string]token.Pos)
    	uses = make(map[string][]token.Pos)
    	var prev token.Pos // position of last non-comment, non-semicolon token
    
    scanFile:
    	for {
    		pos, tok, lit := s.Scan()
    		switch tok {
    		case token.EOF:
    			break scanFile
    		case token.COMMENT:
    			name, decl, use := annotatedObj(lit)
    			if len(name) > 0 {
    				if decl {
    					if _, ok := decls[name]; ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 17:46:07 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                    NegTokenInit tok = new NegTokenInit(initialToken);
                    if ( log.isDebugEnabled() ) {
                        log.debug("Have initial token " + tok);
                    }
                    if ( tok.getMechanisms() != null ) {
                        Set<ASN1ObjectIdentifier> mechs = new HashSet<>(Arrays.asList(tok.getMechanisms()));
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 18.8K bytes
    - Viewed (0)
  4. misc/ios/go_ios_exec.go

    	values := make(map[string]string)
    	var key string
    	var hasKey bool
    	for {
    		tok, err := d.Token()
    		if err == io.EOF {
    			break
    		}
    		if err != nil {
    			return nil, err
    		}
    		if tok, ok := tok.(xml.StartElement); ok {
    			if tok.Name.Local == "key" {
    				if err := d.DecodeElement(&key, &tok); err != nil {
    					return nil, err
    				}
    				hasKey = true
    			} else if hasKey {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 23.4K bytes
    - Viewed (0)
  5. src/go/token/example_test.go

    		relPosition := fset.Position(pos)
    		absPosition := fset.PositionFor(pos, false)
    
    		// Either a FuncDecl or GenDecl, since we exit on error.
    		kind := "func"
    		if gen, ok := decl.(*ast.GenDecl); ok {
    			kind = gen.Tok.String()
    		}
    
    		// If the relative and absolute positions differ, show both.
    		fmtPosition := relPosition.String()
    		if relPosition != absPosition {
    			fmtPosition += "[" + absPosition.String() + "]"
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:09:31 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. src/go/printer/performance_test.go

    	fileSize = int64(len(src))
    
    	for _, decl := range file.Decls {
    		// The first global variable, which is pretty short:
    		//
    		//	var unresolved = new(ast.Object)
    		if decl, ok := decl.(*ast.GenDecl); ok && decl.Tok == token.VAR {
    			declNode = decl
    			declSize = int64(fset.Position(decl.End()).Offset - fset.Position(decl.Pos()).Offset)
    			break
    		}
    
    	}
    }
    
    func BenchmarkPrintFile(b *testing.B) {
    	if fileNode == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:10:10 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  7. src/go/printer/nodes.go

    // Files
    
    func declToken(decl ast.Decl) (tok token.Token) {
    	tok = token.ILLEGAL
    	switch d := decl.(type) {
    	case *ast.GenDecl:
    		tok = d.Tok
    	case *ast.FuncDecl:
    		tok = token.FUNC
    	}
    	return
    }
    
    func (p *printer) declList(list []ast.Decl) {
    	tok := token.ILLEGAL
    	for _, d := range list {
    		prev := tok
    		tok = declToken(d)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    // might inadvertently copy a lock by checking whether
    // any of the range variables are locks.
    func checkCopyLocksRange(pass *analysis.Pass, r *ast.RangeStmt) {
    	checkCopyLocksRangeVar(pass, r.Tok, r.Key)
    	checkCopyLocksRangeVar(pass, r.Tok, r.Value)
    }
    
    func checkCopyLocksRangeVar(pass *analysis.Pass, rtok token.Token, e ast.Expr) {
    	if e == nil {
    		return
    	}
    	id, isId := e.(*ast.Ident)
    	if isId && id.Name == "_" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. pkg/serviceaccount/jwt.go

    		return nil, false, nil
    	}
    
    	tok, err := jwt.ParseSigned(tokenData)
    	if err != nil {
    		return nil, false, nil
    	}
    
    	public := &jwt.Claims{}
    	private := j.validator.NewPrivateClaims()
    
    	// TODO: Pick the key that has the same key ID as `tok`, if one exists.
    	var (
    		found   bool
    		errlist []error
    	)
    	for _, key := range j.keys {
    		if err := tok.Claims(key, public, private); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 22:16:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/assign/assign.go

    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    
    	nodeFilter := []ast.Node{
    		(*ast.AssignStmt)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		stmt := n.(*ast.AssignStmt)
    		if stmt.Tok != token.ASSIGN {
    			return // ignore :=
    		}
    		if len(stmt.Lhs) != len(stmt.Rhs) {
    			// If LHS and RHS have different cardinality, they can't be the same.
    			return
    		}
    		for i, lhs := range stmt.Lhs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top