Exemple #1
0
        public bool Equals(CodeComment other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            return(Text == other.Text);
        }
Exemple #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);
        }
Exemple #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);
        }
        public bool Equals(CodeComment other)
        {
            if (ReferenceEquals(other, null)) return false;

            return Text == other.Text;
        }