Exemple #1
0
        protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
        {
            var method = other as MethodDeclaration;

            return(method != null &&
                   MatchAttributesAndModifiers(method, match) &&
                   IsSub == method.IsSub &&
                   Name.DoMatch(method.Name, match) &&
                   TypeParameters.DoMatch(method.TypeParameters, match) &&
                   Parameters.DoMatch(method.Parameters, match) &&
                   ReturnTypeAttributes.DoMatch(method.ReturnTypeAttributes, match) &&
                   ReturnType.DoMatch(method.ReturnType, match) &&
                   HandlesClause.DoMatch(method.HandlesClause, match) &&
                   ImplementsClause.DoMatch(method.ImplementsClause, match) &&
                   Body.DoMatch(method.Body, match));
        }
 /**
  * Call back method that must be called as soon as the given <code>
  * ImplementsClause</code> object has been traversed.
  *
  * @param pImplementsClause  The <code>ImplementsClause</code> object that
  *                           has just been traversed.
  */
 public void actionPerformed(
      ImplementsClause pImplementsClause)
 {
     // Nothing to do.
 }
 /**
  * Call back method that must be called when the given <code>
  * ImplementsClause</code> will become the next <i>traverse candidate</i>.
  *
  * @param pImplementsClause  The <code>ImplementsClause</code> object that
  *                           will become the next <i>traverse candidate</i>.
  */
 public void performAction(
      ImplementsClause pImplementsClause)
 {
     // Nothing to do.
 }