~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to contrib/ICSharpCode.Decompiler/ILAst/PatternMatching.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
                        ILVariable v;
156
156
                        return node.Match(ILCode.Ldloc, out v) && v == expectedVar;
157
157
                }
 
158
                
 
159
                public static bool MatchLdloca(this ILNode node, ILVariable expectedVar)
 
160
                {
 
161
                        ILVariable v;
 
162
                        return node.Match(ILCode.Ldloca, out v) && v == expectedVar;
 
163
                }
 
164
                
 
165
                public static bool MatchStloc(this ILNode node, ILVariable expectedVar, out ILExpression expr)
 
166
                {
 
167
                        ILVariable v;
 
168
                        return node.Match(ILCode.Stloc, out v, out expr) && v == expectedVar;
 
169
                }
158
170
        }
159
171
}