Пример #1
0
        public bool Equals(CodeComment other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            return(Text == other.Text);
        }
Пример #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            CodeComment rhs = obj as CodeComment;

            if (rhs == null)
            {
                return(false);
            }

            return(Text == rhs.Text);
        }
Пример #3
0
        public static void Rule(Clause lhs, OptionalProcedureComments optionalProcedureComments, Term term, OptionalRuleBody optionalBody)
        {
            IEnumerable<CodeComment> comments = optionalProcedureComments.Comments;
            if (comments == null)
            {
                comments = new CodeComment[] { };
            }

            IEnumerable<CodeCompoundTerm> codeCompoundTerms = optionalBody.CodeCompoundTerms;
            if (codeCompoundTerms == null)
            {
                codeCompoundTerms = new CodeCompoundTerm[] { };
            }

            lhs.CodeSentence = new CodeSentence(comments, term.CodeCompoundTerm, codeCompoundTerms);
        }
Пример #4
0
        public bool Equals(CodeComment other)
        {
            if (ReferenceEquals(other, null)) return false;

            return Text == other.Text;
        }