go-jsonnet/internal/program/BUILD.bazel
Stanisław Barzowski 45f3912215 Make parser package internal
There is no reason for external users to directly depend
on parser. It had a few random things exported as well,
namely errors and "children" functions (helpers for AST
traversal).

It was easy to extract the errors package, but I needed to leave
children in parser for now. The errors package was also
made internal, but it's a candidate for making it public
again potentially (if someone wants to display error messages
just like us). For now it's probably too incomplete anyway.

This change has a potential of breaking the existing users
since we technically remove public APIs. These were not needed
or even helpful for actually running Jsonnet code, but perhaps
someone used them anyway.
2019-09-03 17:28:33 +02:00

28 lines
671 B
Python

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"],
)