This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use protobuf instead of dot to communicate between parsers and core
that is, between the language-specific parsers and the language-agnostic core.
- Loading branch information
Showing
9 changed files
with
74 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Avoid downloading protobuf twice: | ||
build --proto_toolchain_for_java="@com_google_protobuf//:java_toolchain" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 0 additions & 92 deletions
92
src/main/java/com/google/devtools/build/bfg/DotFileParser.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
syntax = "proto2"; | ||
|
||
package com.google.devtools.build.bfg; | ||
|
||
option java_package = "protos.com.google.devtools.build.bfg"; | ||
|
||
// ParserOutput is used to communicate between language-specific parsers and the language-agnostic | ||
// BFG core. | ||
message ParserOutput { | ||
// The class dependency graph. | ||
// In the Java case, we have (u, v) if 'u' mentions [1] 'v'. | ||
// [1] - By mention, we mean either imports or references in code, either as a fully qualified | ||
// name, or an implied same-package name. | ||
map<string, Strings> class_to_class = 1; | ||
} | ||
|
||
message Strings { | ||
repeated string s = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.