Skip to content

Commit

Permalink
In stardoc proto output, mark macro visibility as non-configurable an…
Browse files Browse the repository at this point in the history
…d natively defined.

Follow-up fix to 59e99b6

PiperOrigin-RevId: 703255080
Change-Id: I1055c4c8b7e2e627199bdca9e2daab5654102831
  • Loading branch information
tetromino authored and copybara-github committed Dec 6, 2024
1 parent 7d2509e commit e6a44c8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public final class ModuleInfoExtractor {
.setName("visibility")
.setType(AttributeType.LABEL_LIST)
.setMandatory(false)
.setNonconfigurable(true)
.setNativelyDefined(true)
.setDocString(
"The visibility to be passed to this macro's exported targets. It always"
+ " implicitly includes the location where this macro is instantiated, so"
Expand Down
2 changes: 1 addition & 1 deletion tools/ctexplain/analyses/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from dataclasses import dataclass

from tools.ctexplain.types import ConfiguredTarget
# Do not edit this line. Copybara replaces it with PY2 migration helper..third_party.bazel.tools.ctexplain.util as util
import tools.ctexplain.util as util


@dataclass(frozen=True)
Expand Down
2 changes: 1 addition & 1 deletion tools/ctexplain/analyses/summary_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from frozendict import frozendict

# Do not edit this line. Copybara replaces it with PY2 migration helper..third_party.bazel.tools.ctexplain.analyses.summary as summary
import tools.ctexplain.analyses.summary as summary
from tools.ctexplain.types import Configuration
from tools.ctexplain.types import ConfiguredTarget
from tools.ctexplain.types import NullConfiguration
Expand Down
6 changes: 3 additions & 3 deletions tools/ctexplain/ctexplain.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
from absl import flags
from dataclasses import dataclass

# Do not edit this line. Copybara replaces it with PY2 migration helper..third_party.bazel.tools.ctexplain.analyses.summary as summary
import tools.ctexplain.analyses.summary as summary
from tools.ctexplain.bazel_api import BazelApi
# Do not edit this line. Copybara replaces it with PY2 migration helper..third_party.bazel.tools.ctexplain.lib as lib
import tools.ctexplain.lib as lib
from tools.ctexplain.types import ConfiguredTarget
# Do not edit this line. Copybara replaces it with PY2 migration helper..third_party.bazel.tools.ctexplain.util as util
import tools.ctexplain.util as util

FLAGS = flags.FLAGS

Expand Down
2 changes: 1 addition & 1 deletion tools/ctexplain/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""General-purpose business logic."""
from typing import Tuple

# Do not edit this line. Copybara replaces it with PY2 migration helper..third_party.bazel.tools.ctexplain.bazel_api as bazel_api
import tools.ctexplain.bazel_api as bazel_api
from tools.ctexplain.types import ConfiguredTarget


Expand Down
4 changes: 2 additions & 2 deletions tools/ctexplain/lib_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"""Tests for lib.py."""
import unittest
from src.test.py.bazel import test_base
# Do not edit this line. Copybara replaces it with PY2 migration helper..third_party.bazel.tools.ctexplain.bazel_api as bazel_api
# Do not edit this line. Copybara replaces it with PY2 migration helper..third_party.bazel.tools.ctexplain.lib as lib
import tools.ctexplain.bazel_api as bazel_api
import tools.ctexplain.lib as lib
from tools.ctexplain.types import Configuration
from tools.ctexplain.types import HostConfiguration
from tools.ctexplain.types import NullConfiguration
Expand Down

0 comments on commit e6a44c8

Please sign in to comment.