Skip to content

Commit

Permalink
refactor: rename _impl methods with unique name (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard authored Feb 2, 2024
1 parent 4fb1f52 commit 4bf607e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions swc/private/swc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def _swc_action(ctx, swc_binary, **kwargs):
**kwargs
)

def _impl(ctx):
def _swc_impl(ctx):
swc_toolchain = ctx.toolchains["@aspect_rules_swc//swc:toolchain_type"]

inputs = swc_toolchain.swcinfo.tool_files[:]
Expand Down Expand Up @@ -360,7 +360,7 @@ def _impl(ctx):
]

swc = struct(
implementation = _impl,
implementation = _swc_impl,
attrs = dict(_attrs, **_outputs),
toolchains = ["@aspect_rules_swc//swc:toolchain_type"],
SUPPORTED_EXTENSIONS = _SUPPORTED_EXTENSIONS,
Expand Down
4 changes: 2 additions & 2 deletions swc/private/swc_plugin.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _attrs = {
),
}

def _impl(ctx):
def _swc_plugin_impl(ctx):
return [
DefaultInfo(
files = ctx.attr.src[DefaultInfo].files,
Expand All @@ -28,6 +28,6 @@ def _impl(ctx):

swc_plugin = struct(
attrs = _attrs,
implementation = _impl,
implementation = _swc_plugin_impl,
provides = [DefaultInfo, SwcPluginConfigInfo],
)

0 comments on commit 4bf607e

Please sign in to comment.