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

Automated Code Change #374

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions bazel/go_dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,9 @@ def fhir_go_dependencies():
sum = "h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=",
version = "v0.0.0-20191204190536-9bdfabe68543",
)
go_repository(
name = "com_github_antrl4_go_antlr",
importpath = "github.com/antlr4-go/antlr/v4",
sum = "h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI=",
version = "v4.13.0",
)
8 changes: 2 additions & 6 deletions cc/google/fhir/fhir_path/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ cc_library(
"fhir_path_types.h",
],
strip_include_prefix = "//cc/",
visibility = [
"//visibility:private", # Only private by automation, not intent. Owner may accept CLs adding visibility. See go/scheuklappen#explicit-private.
],
visibility = ["//visibility:private"],
deps = [
"//cc/google/fhir:annotations",
"//cc/google/fhir:fhir_types",
Expand All @@ -143,9 +141,7 @@ cc_library(
"utils.h",
],
strip_include_prefix = "//cc/",
visibility = [
"//visibility:private", # Only private by automation, not intent. Owner may accept CLs adding visibility. See go/scheuklappen#explicit-private.
],
visibility = ["//visibility:private"],
deps = [
"//cc/google/fhir:annotations",
"//cc/google/fhir:references",
Expand Down
3 changes: 2 additions & 1 deletion examples/bulkdata/BUILD
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
load("@fhir_bazel_pip_dependencies//:requirements.bzl", "requirement")

# Simple client to download data from FHIR server (using bulk data protocol)
load(
"@rules_python//python:python.bzl",
"py_binary",
)
load("@fhir_bazel_pip_dependencies//:requirements.bzl", "requirement")

licenses(["notice"])

Expand Down
6 changes: 3 additions & 3 deletions examples/profiles/BUILD
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
load("//bazel:proto.bzl", "fhir_proto_library")
load("//bazel:protogen.bzl", "gen_fhir_definitions_and_protos")

package(default_visibility = ["//visibility:public"])

licenses(["notice"])

load("//bazel:protogen.bzl", "gen_fhir_definitions_and_protos")
load("//bazel:proto.bzl", "fhir_proto_library")

gen_fhir_definitions_and_protos(
name = "demo",
additional_proto_imports = [
Expand Down
15 changes: 15 additions & 0 deletions go/fhirpath/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")

licenses(["notice"])

package(default_visibility = ["//visibility:public"])

go_library(
name = "fhirpath",
srcs = ["visitor.go"],
importpath = "github.com/google/fhir/go/fhirpath",
deps = [
"//go/fhirpath/gen",
"@com_github_antrl4_go_antlr//:go_default_library",
],
)
23 changes: 23 additions & 0 deletions go/fhirpath/gen/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")

licenses(["notice"])

package(default_visibility = ["//visibility:public"])

go_library(
name = "gen",
srcs = [
"doc.go",
"fhirpath_base_listener.go",
"fhirpath_base_visitor.go",
"fhirpath_lexer.go",
"fhirpath_listener.go",
"fhirpath_parser.go",
"fhirpath_visitor.go",
],
importpath = "github.com/google/fhir/go/fhirpath/gen",
visibility = [
"//go/fhirpath:__subpackages__",
],
deps = ["@com_github_antrl4_go_antlr//:go_default_library"],
)
16 changes: 16 additions & 0 deletions go/fhirpath/gen/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http:https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Package gen is a FHIRPath parser and lexer generated by Antlr. Do not modify the code in this package
package gen
267 changes: 267 additions & 0 deletions go/fhirpath/gen/fhirpath_base_listener.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading