Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(serving): render MODIFIERs in signatures (#5819)
- Loading branch information
1 parent
55e39a6
commit f9d97b2
Showing
8 changed files
with
116 additions
and
23 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
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
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
23 changes: 21 additions & 2 deletions
23
kythe/javatests/com/google/devtools/kythe/analyzers/java/testdata/pkg/RenderedCode.java
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 |
---|---|---|
@@ -1,18 +1,37 @@ | ||
// - @pkg ref Package | ||
// - Package.code/rendered/signature "package pkg" | ||
package pkg; | ||
|
||
// - @RenderedCode defines/binding RenderedCode | ||
// - RenderedCode.code/rendered/signature "public final class RenderedCode" | ||
// - RenderedCode.code/rendered/qualified_name "pkg.RenderedCode" | ||
public final class RenderedCode { | ||
// - @RenderedCode defines/binding Constructor | ||
// - Constructor.code/rendered/qualified_name "pkg.RenderedCode.RenderedCode" | ||
// - Constructor.code/rendered/signature "RenderedCode()" | ||
// - Constructor.code/rendered/signature "private RenderedCode()" | ||
// - Constructor.code/rendered/callsite_signature "RenderedCode()" | ||
private RenderedCode() {} | ||
|
||
// - @Inner defines/binding Inner | ||
// - Inner.code/rendered/qualified_name "pkg.RenderedCode.Inner" | ||
// - Inner.code/rendered/signature "Inner<T, U>" | ||
// - Inner.code/rendered/signature "public static class Inner<T, U>" | ||
// - Inner tparam.0 T | ||
// - T.code/rendered/qualified_name "pkg.RenderedCode.Inner.T" | ||
public static class Inner<T, U> {} | ||
|
||
// - @CONSTANT defines/binding Constant | ||
// - Constant.code/rendered/signature "public static final String CONSTANT" | ||
public static final String CONSTANT = "blah"; | ||
|
||
// - @E defines/binding E | ||
// - E.code/rendered/signature "protected enum E" | ||
protected enum E { | ||
// - @VALUE defines/binding Value | ||
// - Value.code/rendered/signature "E VALUE" | ||
VALUE | ||
} | ||
|
||
// - @I defines/binding I | ||
// - I.code/rendered/signature "interface I" | ||
interface I {} | ||
} |