private static bool IsNonEmptyStringLiteral(VBSyntax.ExpressionSyntax vbExpr) { return(vbExpr.SkipIntoParens().IsKind(VBSyntaxKind.StringLiteralExpression) && vbExpr is VBSyntax.LiteralExpressionSyntax literal && !IsEmptyString(literal)); }
public static bool AlwaysHasBooleanTypeInCSharp(this VBSyntax.ExpressionSyntax node) => node.SkipIntoParens().IsKind(VBasic.SyntaxKind.AndAlsoExpression, VBasic.SyntaxKind.AndExpression, VBasic.SyntaxKind.OrElseExpression, VBasic.SyntaxKind.OrExpression, VBasic.SyntaxKind.NotExpression);