コード例 #1
0
        public bool Equals(FunctionPrototypeAstNode other)
        {
            if (Name != other.Name || ReturnType != other.ReturnType)
            {
                return(false);
            }

            return(Name == other.Name && ReturnType == other.ReturnType &&
                   EqUtil.EnumerableEqual(Parameters, other.Parameters) &&
                   EqUtil.SortedEnumerableEqual(Attributes, other.Attributes));
        }
コード例 #2
0
 public override bool Equals(object?obj)
 {
     return(EqUtil.NotNullAndSameType(this, obj) &&
            Equals((VariableDefineAstNode)obj !));
 }
コード例 #3
0
 public override bool Equals(object?obj)
 {
     return(EqUtil.NotNullAndSameType(this, obj) &&
            Equals((IdentifierAstNode)obj !));
 }
コード例 #4
0
 public bool Equals(CodeBlockAstNode other)
 {
     return(EqUtil.EnumerableEqual(Statements, other.Statements));
 }
コード例 #5
0
 public override bool Equals(object?obj)
 {
     return(EqUtil.NotNullAndSameType(this, obj) &&
            Equals((BinaryOperatorAstNode)obj !));
 }
コード例 #6
0
 public override bool Equals(object?obj)
 {
     return(EqUtil.NotNullAndSameType(this, obj) &&
            Equals((FunctionPrototypeAstNode)obj !));
 }
コード例 #7
0
 public bool Equals(FunctionCallingAstNode other)
 {
     return(Callee == other.Callee &&
            EqUtil.EnumerableEqual(Arguments, other.Arguments));
 }