コード例 #1
0
 public bool Equals(ISyntacticAnalysisTree other)
 {
     if (other is null)
     {
         return(false);
     }
     return(Equals(other as NonTerminalTree));
 }
コード例 #2
0
ファイル: TerminalTree.cs プロジェクト: Liu233w/ToyCompiler
 public bool Equals(ISyntacticAnalysisTree other)
 {
     if (other is null)
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other as TerminalTree));
 }