private static string GetStmtName(Stmt s) { if (s.StmtType == Stmt.NodeType.Cil) { var sCil = (StmtCil)s; if (sCil.Insts != null && sCil.Insts.Any()) { return string.Format("IL_{0:x4}", sCil.Insts.First().Offset); } } return string.Format("{0:x8}", s.GetHashCode()); }
private static string GetStmtName(Stmt s) { if (s.StmtType == Stmt.NodeType.Cil) { var sCil = (StmtCil)s; if (sCil.Insts != null && sCil.Insts.Any()) { return(string.Format("IL_{0:x4}", sCil.Insts.First().Offset)); } } return(string.Format("{0:x8}", s.GetHashCode())); }
public override int GetHashCode() { int hash = 1; if (Namespace.Length != 0) { hash ^= Namespace.GetHashCode(); } if (Stmt.Length != 0) { hash ^= Stmt.GetHashCode(); } hash ^= args_.GetHashCode(); if (CompactMetadata != false) { hash ^= CompactMetadata.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (CursorId != 0) { hash ^= CursorId.GetHashCode(); } if (stmt_ != null) { hash ^= Stmt.GetHashCode(); } if (FetchRows != 0UL) { hash ^= FetchRows.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }