Пример #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
}
Пример #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
}
Пример #3
0
func (this Str) HashCode() int {
	return tk.HashString(tk.HASH_SEED, string(this))
}