Skip to content

Instantly share code, notes, and snippets.

@VladimirReshetnikov
Created January 24, 2014 23:55
Show Gist options
  • Select an option

  • Save VladimirReshetnikov/8609345 to your computer and use it in GitHub Desktop.

Select an option

Save VladimirReshetnikov/8609345 to your computer and use it in GitHub Desktop.
private static bool IsSimpleBinaryOperator(SyntaxKind kind)
{
switch (kind)
{
case SyntaxKind.AddExpression:
case SyntaxKind.MultiplyExpression:
case SyntaxKind.SubtractExpression:
// ... more cases skipped ...
case SyntaxKind.RightShiftExpression:
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment