Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for newNames (0.25 sec)

  1. tests/migrate_test.go

    		}
    	}
    
    	type NewColumnStruct struct {
    		gorm.Model
    		Name    string
    		NewName string
    	}
    
    	if err := DB.Table("column_structs").Migrator().AddColumn(&NewColumnStruct{}, "NewName"); err != nil {
    		t.Fatalf("Failed to add column, got %v", err)
    	}
    
    	if !DB.Table("column_structs").Migrator().HasColumn(&NewColumnStruct{}, "NewName") {
    		t.Fatalf("Failed to find added column")
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  2. src/reflect/type.go

    	pkgPathName := abi.Name{Bytes: (*byte)(resolveTypeOff(unsafe.Pointer(n.Bytes), nameOff))}
    	return pkgPathName.Name()
    }
    
    func newName(n, tag string, exported, embedded bool) abi.Name {
    	return abi.NewName(n, tag, exported, embedded)
    }
    
    /*
     * The compiler knows the exact layout of all the data structures above.
     * The compiler does not know about the data structures and methods below.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/parser.go

    // Common productions
    
    func (p *parser) name() *Name {
    	// no tracing to avoid overly verbose output
    
    	if p.tok == _Name {
    		n := NewName(p.pos(), p.lit)
    		p.next()
    		return n
    	}
    
    	n := NewName(p.pos(), "_")
    	p.syntaxError("expected name")
    	p.advance()
    	return n
    }
    
    // IdentifierList = identifier { "," identifier } .
    // The first name must be provided.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/lib.go

    			// so it is consistent with the one stored in the shared library.
    			continue
    		}
    		name := ldr.SymName(s)
    		newName := typeSymbolMangle(name)
    		if newName != name {
    			ldr.SetSymExtname(s, newName)
    
    			// When linking against a shared library, the Go object file may
    			// have reference to the original symbol name whereas the shared
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/DefaultConfiguration.java

            }
            return copiedConfiguration;
        }
    
        private DefaultConfiguration newConfiguration(ConfigurationRole role) {
            String newName = getNameWithCopySuffix();
            DetachedConfigurationsProvider configurationsProvider = new DetachedConfigurationsProvider();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:36:01 UTC 2024
    - 85.4K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/xcoff.go

    // must be modified to conventional names and they are various subtypes.
    func (f *xcoffFile) addDwarfSection(s *sym.Section) *XcoffScnHdr64 {
    	newName, subtype := xcoffGetDwarfSubtype(s.Name)
    	return f.addSection(newName, 0, s.Length, s.Seg.Fileoff+s.Vaddr-s.Seg.Vaddr, STYP_DWARF|subtype)
    }
    
    // xcoffGetDwarfSubtype returns the XCOFF name of the DWARF section str
    // and its subtype constant.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:58:23 UTC 2023
    - 51.8K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    // A Name is a non-encoded and non-escaped domain name. It is used instead of strings to avoid
    // allocations.
    type Name struct {
    	Data   [255]byte
    	Length uint8
    }
    
    // NewName creates a new Name from a string.
    func NewName(name string) (Name, error) {
    	n := Name{Length: uint8(len(name))}
    	if len(name) > len(n.Data) {
    		return Name{}, errCalcLen
    	}
    	copy(n.Data[:], name)
    	return n, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/type.go

    	TypeInt128.align = 8
    }
    
    // NewNamed returns a new named type for the given type name. obj should be an
    // ir.Name. The new type is incomplete (marked as TFORW kind), and the underlying
    // type should be set later via SetUnderlying(). References to the type are
    // maintained until the type is filled in, so those references can be updated when
    // the type is complete.
    func NewNamed(obj Object) *Type {
    	t := newType(TFORW)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  9. src/cmd/cgo/gcc.go

    	if addPosition {
    		getNewIdent = func(newName string) *ast.Ident {
    			mangledIdent := ast.NewIdent(newName)
    			if len(newName) == len(r.Name.Go) {
    				return mangledIdent
    			}
    			p := fset.Position((*r.Expr).End())
    			if p.Column == 0 {
    				return mangledIdent
    			}
    			return ast.NewIdent(fmt.Sprintf("%s /*line :%d:%d*/", newName, p.Line, p.Column))
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api_test.go

    			continue
    		}
    	}
    }
    
    // newDefined creates a new defined type named T with the given underlying type.
    func newDefined(underlying Type) *Named {
    	tname := NewTypeName(nopos, nil, "T", nil)
    	return NewNamed(tname, underlying, nil)
    }
    
    func TestConvertibleTo(t *testing.T) {
    	for _, test := range []struct {
    		v, t Type
    		want bool
    	}{
    		{Typ[Int], Typ[Int], true},
    		{Typ[Int], Typ[Float32], true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top