File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -749,15 +749,14 @@ public void visitMethodSpec(@NotNull GoMethodSpec o) {
749
749
750
750
@ NotNull
751
751
public static List <GoMethodDeclaration > getMethods (@ NotNull final GoTypeSpec o ) {
752
- List < GoMethodDeclaration > result = CachedValuesManager .getCachedValue (o , new CachedValueProvider <List <GoMethodDeclaration >>() {
752
+ return CachedValuesManager .getCachedValue (o , new CachedValueProvider <List <GoMethodDeclaration >>() {
753
753
@ Nullable
754
754
@ Override
755
755
public Result <List <GoMethodDeclaration >> compute () {
756
- PsiDirectory packageDirectory = o . getContainingFile (). getOriginalFile (). getParent ();
757
- return packageDirectory != null ? Result .create (calcMethods (o ), packageDirectory ) : null ;
756
+ // todo[zolotov]: implement package modification tracker
757
+ return Result .create (calcMethods (o ), PsiModificationTracker . MODIFICATION_COUNT ) ;
758
758
}
759
759
});
760
- return result != null ? result : calcMethods (o );
761
760
}
762
761
763
762
public static boolean allowed (@ NotNull PsiFile declarationFile , @ Nullable PsiFile referenceFile , @ Nullable Module contextModule ) {
You can’t perform that action at this time.
0 commit comments