Antlr4.Runtime.Atn.ATNConfig.GetHashCode C# (CSharp) Méthode

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int
        public override int GetHashCode()
        {
            int hashCode = MurmurHash.Initialize(7);
            hashCode = MurmurHash.Update(hashCode, State.stateNumber);
            hashCode = MurmurHash.Update(hashCode, Alt);
            hashCode = MurmurHash.Update(hashCode, ReachesIntoOuterContext ? 1 : 0);
            hashCode = MurmurHash.Update(hashCode, Context);
            hashCode = MurmurHash.Update(hashCode, SemanticContext);
            hashCode = MurmurHash.Update(hashCode, PassedThroughNonGreedyDecision ? 1 : 0);
            hashCode = MurmurHash.Update(hashCode, ActionExecutor);
            hashCode = MurmurHash.Finish(hashCode, 7);
            return hashCode;
        }

Usage Example

Exemple #1
0
 protected internal override long GetKey(ATNConfig e)
 {
     return(e.GetHashCode());
 }
All Usage Examples Of Antlr4.Runtime.Atn.ATNConfig::GetHashCode