class AnalyzePrototypeProperties.NameInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Deque<AnalyzePrototypeProperties.Symbol> |
declarations |
private JSModule |
deepestCommonModuleRef |
(package private) java.lang.String |
name |
private boolean |
readClosureVariables |
private boolean |
referenced |
Constructor and Description |
---|
NameInfo(java.lang.String name)
Constructs a new NameInfo.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Deque<AnalyzePrototypeProperties.Symbol> |
getDeclarations()
Returns a mutable collection of all the prototype property declarations
of this property name.
|
(package private) JSModule |
getDeepestCommonModuleRef()
Returns the deepest common module of all the references to this
property.
|
(package private) boolean |
isReferenced()
Determines whether we've marked a reference to this property name.
|
(package private) boolean |
markReference(JSModule module)
Mark a reference in a given module to this property name, and record
the deepest common module reference.
|
(package private) boolean |
readsClosureVariables()
Determines whether it reads a closure variable.
|
java.lang.String |
toString() |
final java.lang.String name
private boolean referenced
private final java.util.Deque<AnalyzePrototypeProperties.Symbol> declarations
private JSModule deepestCommonModuleRef
private boolean readClosureVariables
NameInfo(java.lang.String name)
name
- The name of the property that this represents. May be null
to signify dummy nodes in the property graph.public java.lang.String toString()
toString
in class java.lang.Object
boolean isReferenced()
boolean readsClosureVariables()
boolean markReference(JSModule module)
module
- The module where it was referenced.JSModule getDeepestCommonModuleRef()
java.util.Deque<AnalyzePrototypeProperties.Symbol> getDeclarations()