The code regions of ASP.NET markup files are now parsed: @code and
@functions blocks of .razor and .cshtml files, and <script runat="server">
blocks of .aspx, .ascx and .master files, in C# or, as the page directive
says, VB. The markup around them is blanked out with its line breaks kept
and each region is wrapped in the file's class, so the C# and VB parsers
read the members and report the markup file's own lines.
Methods the markup refers to (@onclick="Save", OnClick="BtnSave_Click",
<%# Title() %>) and the framework's lifecycle hooks (OnInitialized,
Page_Load) are entry points. A markup file without code regions is a file
node. Inline Razor and <% %> render blocks are left out.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>