Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite variable scope tracking to reuse the scope information provided by the parser #20

Merged
merged 2 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/Bundling.EcmaScript/Bundling.EcmaScript.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Acornima" Version="1.0.0" />
<PackageReference Include="Acornima" Version="1.1.0" />
<PackageReference Include="ConfigureAwaitChecker.Analyzer" Version="5.0.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
Expand Down

This file was deleted.

12 changes: 12 additions & 0 deletions source/Bundling.EcmaScript/Internal/Helpers/VariableKind.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace Karambolo.AspNetCore.Bundling.EcmaScript.Internal.Helpers
{
// TODO: rem?

// https://exploringjs.com/es6/ch_variables.html#_ways-of-declaring-variables
internal enum VariableKind
{
Var,
Lexical,
Function,
}
}
448 changes: 152 additions & 296 deletions source/Bundling.EcmaScript/Internal/Helpers/VariableScope.cs

Large diffs are not rendered by default.

Loading