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

pull-pico-changes: expose and add method #142

Open
wants to merge 9 commits 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
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public void postAsMemberOf(
* @see #computeFieldAccessType
* @see #getAnnotatedTypeLhs(Tree)
*/
private boolean computingAnnotatedTypeMirrorOfLHS = false;
protected boolean computingAnnotatedTypeMirrorOfLHS = false;

@Override
public AnnotatedTypeMirror getAnnotatedTypeLhs(Tree lhsTree) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,15 @@ public S initialStore(
return info;
}

private void addFieldValues(
/**
* Add knowledge about field values to the store {@code info}.
*
* @param info {@code S}
* @param factory the type factory
* @param classTree the class tree
* @param methodTree the method tree
*/
protected void addFieldValues(
S info, AnnotatedTypeFactory factory, ClassTree classTree, MethodTree methodTree) {

// Add knowledge about final fields, or values of non-final fields
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ private AnnotatedTypeMirror fromExpression(ExpressionTree tree) {
* @param tree the type tree
* @return the (partially) annotated type of the type in the AST
*/
/*package private*/ final AnnotatedTypeMirror fromTypeTree(Tree tree) {
public final AnnotatedTypeMirror fromTypeTree(Tree tree) {
if (shouldCache && fromTypeTreeCache.containsKey(tree)) {
return fromTypeTreeCache.get(tree).deepCopy();
}
Expand Down