ReSharper 2026.1 Help

Code inspection: Part of the code cannot be parsed

This inspection identifies blocks of code that could not be fully parsed. This typically occurs due to extreme code complexity, such as deeply nested expressions or exceptionally large methods, which exceed the parser's internal thresholds or execution stack limits.

When the parser encounters such a situation, it switches to a "non-parsable" mode and creates a fallback node. Inside this node, the analysis goes until a reliable synchronization point (like a closing brace or a semicolon) is found. Because the node not properly parsed, most IDE features—including navigation, refactoring, and detailed code analysis—will be unavailable within the highlighted range.

This inspection is rarely seen in standard code but can appear in generated code or extreme edge cases where nesting reaches hundreds of levels deep:

public void ExtremeNesting() { // If these nested calls go hundreds of levels deep, // the parser may hit a stack limit. Method(Method(Method(Method(Method(Method( ... )))))); }
30 March 2026