Ejemplo n.º 1
0
func (this *Token) HashCode() int {
	if this.hash == 0 {
		result := tk.HashType(tk.HASH_SEED, this)
		result = tk.HashString(result, this.Operator)
		result = tk.HashString(result, this.Alias)
		result = tk.Hash(result, this.Members)
		this.hash = result
	}

	return this.hash
}
Ejemplo n.º 2
0
func (this *Column) HashCode() int {
	if this.hash == 0 {
		result := tk.HashType(tk.HASH_SEED, this)
		result = tk.HashString(result, this.table.String()+"."+this.name)
		this.hash = result
	}

	return this.hash
}
Ejemplo n.º 3
0
func (this Str) HashCode() int {
	return tk.HashString(tk.HASH_SEED, string(this))
}