load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = [
        "desugarer.go",
        "program.go",
        "static_analyzer.go",
    ],
    importpath = "github.com/google/go-jsonnet/internal/program",
    visibility = ["//:__subpackages__"],
    deps = [
        "//ast:go_default_library",
        "//internal/errors:go_default_library",
        "//internal/parser:go_default_library",
    ],
)

go_test(
    name = "go_default_test",
    srcs = [
        "desugarer_test.go",
        "static_analyzer_test.go",
    ],
    embed = [":go_default_library"],
    deps = ["//ast:go_default_library"],
)
