public static bool NodeOrTokenContainsError(SyntaxNodeOrToken nodeOrToken) { foreach (var diagnostic in nodeOrToken.GetDiagnostics()) { if (diagnostic.Severity == DiagnosticSeverity.Error) { return(true); } } return(false); }
public static bool NodeOrTokenContainsError(SyntaxNodeOrToken nodeOrToken) { foreach (var diagnostic in nodeOrToken.GetDiagnostics()) { if (diagnostic.Severity == DiagnosticSeverity.Error) { return(true); } } return(false); }