Skip to content

Commit

Permalink
Add isExpanded method
Browse files Browse the repository at this point in the history
  • Loading branch information
smarter committed Mar 20, 2018
1 parent 73ea6de commit 5db0a5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ trait BCodeHelpers extends BCodeIdiomatic with BytecodeWriters {
debuglog(s"Potentially conflicting names for forwarders: $conflictingNames")

for (m <- moduleClass.info.membersBasedOnFlags(ExcludedForwarderFlags, Flag_METHOD)) {
if (m.isType || m.isDeferred || (m.owner eq ObjectClass) || m.isConstructor)
if (m.isType || m.isDeferred || (m.owner eq ObjectClass) || m.isConstructor || m.isExpanded)
debuglog(s"No forwarder for '$m' from $jclassName to '$moduleClass'")
else if (conflictingNames(m.name))
log(s"No forwarder for $m due to conflict with ${linkedClass.info.member(m.name)}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ abstract class BackendInterface extends BackendInterfaceDefinitions {
def isType: Boolean
def isAnonymousClass: Boolean
def isConstructor: Boolean
def isExpanded: Boolean
def isAnonymousFunction: Boolean
def isMethod: Boolean
def isPublic: Boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ class ScalacBackendInterface[G <: Global](val global: G) extends BackendInterfac
def isType: Boolean = sym.isType
def isAnonymousClass: Boolean = sym.isAnonymousClass
def isConstructor: Boolean = sym.isConstructor
def isExpanded: Boolean = sym.hasFlag(Flags.EXPANDEDNAME)
def isAnonymousFunction: Boolean = sym.isAnonymousFunction
def isMethod: Boolean = sym.isMethod
def isPublic: Boolean = sym.isPublic
Expand Down

0 comments on commit 5db0a5c

Please sign in to comment.