Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 274 for Fset (0.24 sec)

  1. src/go/printer/testdata/parser.go

    		m |= scanner.ScanComments
    	}
    	return m
    }
    
    func (p *parser) init(fset *token.FileSet, filename string, src []byte, mode uint) {
    	p.file = fset.AddFile(filename, fset.Base(), len(src))
    	p.scanner.Init(p.file, src, p, scannerMode(mode))
    
    	p.mode = mode
    	p.trace = mode&Trace != 0 // for convenience (p.trace is used frequently)
    
    	p.next()
    
    	// set up the pkgScope here (as opposed to in parseFile) because
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  2. src/cmd/fix/typecheck.go

    // It is like typecheck but adds to the information in typeof
    // instead of allocating a new map.
    func typecheck1(cfg *TypeConfig, f any, typeof map[any]string, assign map[string][]any) {
    	// set sets the type of n to typ.
    	// If isDecl is true, n is being declared.
    	set := func(n ast.Expr, typ string, isDecl bool) {
    		if typeof[n] != "" || typ == "" {
    			if typeof[n] != typ {
    				assign[typ] = append(assign[typ], n)
    			}
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/resolver.go

    						obj = scope.Lookup(ident.Value)
    					}
    				}
    				// If Config.go115UsesCgo is set, the typechecker will resolve Cgo
    				// selectors to their cgo name. We must do the same here.
    				if pname, _ := obj.(*PkgName); pname != nil {
    					if pname.imported.cgo { // only set if Config.go115UsesCgo is set
    						name = "_Ctype_" + typ.Sel.Value
    					}
    				}
    			}
    			if name == "" {
    				return false, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  4. src/go/types/stmt.go

    			}
    		default:
    			check.error(s, InvalidSyntaxTree, "case/communication clause expected")
    		}
    		if d != nil {
    			if first != nil {
    				check.errorf(d, DuplicateDefault, "multiple defaults (first at %s)", check.fset.Position(first.Pos()))
    			} else {
    				first = d
    			}
    		}
    	}
    }
    
    func (check *Checker) openScope(node ast.Node, comment string) {
    	scope := NewScope(check.scope, node.Pos(), node.End(), comment)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  5. src/reflect/type.go

    							Tfn:  resolveReflectText(textOffFor(ft, m.Tfn)),
    						})
    
    					}
    				}
    			}
    		}
    		if _, dup := fset[name]; dup && name != "_" {
    			panic("reflect.StructOf: duplicate field " + name)
    		}
    		fset[name] = struct{}{}
    
    		hash = fnv1(hash, byte(ft.Hash>>24), byte(ft.Hash>>16), byte(ft.Hash>>8), byte(ft.Hash))
    
    		repr = append(repr, (" " + stringFor(ft))...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  6. src/cmd/cgo/gcc.go

    			t.Go = c.goVoidPtr
    			t.C.Set("void*")
    			dq := dt.Type
    			for {
    				if d, ok := dq.(*dwarf.QualType); ok {
    					t.C.Set(d.Qual + " " + t.C.String())
    					dq = d.Type
    				} else {
    					break
    				}
    			}
    			break
    		}
    
    		// Placeholder initialization; completed in FinishType.
    		t.Go = &ast.StarExpr{}
    		t.C.Set("<incomplete>*")
    		key := dt.Type.String()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  7. src/go/ast/ast.go

    // at https://go.dev/s/generatedcode.
    //
    // The syntax tree must have been parsed with the [parser.ParseComments] flag.
    // Example:
    //
    //	f, err := parser.ParseFile(fset, filename, src, parser.ParseComments|parser.PackageClauseOnly)
    //	if err != nil { ... }
    //	gen := ast.IsGenerated(f)
    func IsGenerated(file *File) bool {
    	_, ok := generator(file)
    	return ok
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  8. src/go/parser/parser.go

    	exprLev int  // < 0: in control clause, >= 0: in expression
    	inRhs   bool // if set, the parser is parsing a rhs expression
    
    	imports []*ast.ImportSpec // list of imports
    
    	// nestLev is used to track and limit the recursion depth
    	// during parsing.
    	nestLev int
    }
    
    func (p *parser) init(fset *token.FileSet, filename string, src []byte, mode Mode) {
    	p.file = fset.AddFile(filename, -1, len(src))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  9. internal/event/targetidset.go

    func (set TargetIDSet) add(targetID TargetID) {
    	set[targetID] = struct{}{}
    }
    
    // Union - returns union with given set as new set.
    func (set TargetIDSet) Union(sset TargetIDSet) TargetIDSet {
    	nset := set.Clone()
    
    	for k := range sset {
    		nset.add(k)
    	}
    
    	return nset
    }
    
    // Difference - returns difference with given set as new set.
    func (set TargetIDSet) Difference(sset TargetIDSet) TargetIDSet {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. api/go1.5.txt

    pkg go/types, type Config struct, Importer Importer
    pkg go/types, type Config struct, Sizes Sizes
    pkg go/types, type Const struct
    pkg go/types, type Error struct
    pkg go/types, type Error struct, Fset *token.FileSet
    pkg go/types, type Error struct, Msg string
    pkg go/types, type Error struct, Pos token.Pos
    pkg go/types, type Error struct, Soft bool
    pkg go/types, type Func struct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
Back to top