Created
December 24, 2012 09:42
-
-
Save anonymous/4368601 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let (|BinaryExpression|_|) (expr:ExpressionSyntax) = | |
match expr with | |
| :? BinaryExpressionSyntax as expr -> Some(expr) | |
| _ -> None | |
let (|LiteralExpression|_|) (expr:ExpressionSyntax) = | |
match expr with | |
| :? LiteralExpressionSyntax as expr -> Some(expr) | |
| _ -> None | |
let (|InvocationExpression|_|) (expr:ExpressionSyntax) = | |
match expr with | |
| :? InvocationExpressionSyntax as expr -> Some(expr) | |
| _ -> None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment