diff options
author | 2018-05-01 10:54:58 -0700 | |
---|---|---|
committer | 2018-05-01 10:57:43 -0700 | |
commit | b80eb18e66adcdcbfbc1ec62cd1a67db1924504d (patch) | |
tree | 66080c778b7b095d3d159ba84855b315be96f4b9 /src/main/java/com/google/devtools/common | |
parent | 1de17c2644f8e0f4da0fbc6569db083a8acc56e7 (diff) |
Move BazelLibrary from syntax/ to packages/
This helps the Skylark interpreter to not depend on Bazel concepts, though it adds a temporary dependency of Skylint on packages/. The fix for that will be to create a Build API interface for BazelLibrary (e.g., "BazelLibraryAPI").
Refactored some GlobalFrame construction logic to be more uniform. Instead of constructing a whole Environment just to get a frame, we build the frame directly, using ImmutableMap.Builder to accumulate bindings. This convention may further change once we convert MethodLibrary and the like to @SkylarkGlobalLibrary, but for now it's more readable.
RELNOTES: None
PiperOrigin-RevId: 194960824
Diffstat (limited to 'src/main/java/com/google/devtools/common')
0 files changed, 0 insertions, 0 deletions