File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/compiler/scala/tools/nsc/transform Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -165,11 +165,13 @@ abstract class Constructors extends Statics with Transform with ast.TreeDSL {
165
165
return
166
166
}
167
167
168
+ val isEffectivelyFinal = clazz.isEffectivelyFinal
168
169
def isParamCandidateForElision (sym : Symbol ) = (sym.isParamAccessor && sym.isPrivateLocal)
169
- def isOuterCandidateForElision (sym : Symbol ) = (sym.isOuterAccessor && sym.owner. isEffectivelyFinal && ! sym.isOverridingSymbol)
170
+ def isOuterCandidateForElision (sym : Symbol ) = (sym.isOuterAccessor && isEffectivelyFinal && ! sym.isOverridingSymbol)
170
171
171
- val paramCandidatesForElision : Set [ /* Field*/ Symbol ] = (clazz.info.decls.toSet filter isParamCandidateForElision)
172
- val outerCandidatesForElision : Set [ /* Method*/ Symbol ] = (clazz.info.decls.toSet filter isOuterCandidateForElision)
172
+ val decls = clazz.info.decls.toSet
173
+ val paramCandidatesForElision : Set [ /* Field*/ Symbol ] = (decls filter isParamCandidateForElision)
174
+ val outerCandidatesForElision : Set [ /* Method*/ Symbol ] = (decls filter isOuterCandidateForElision)
173
175
174
176
omittables ++= paramCandidatesForElision
175
177
omittables ++= outerCandidatesForElision
You can’t perform that action at this time.
0 commit comments