static class AnalyzePrototypeProperties.LiteralProperty extends java.lang.Object implements AnalyzePrototypeProperties.Property
function Foo() { ... }; Foo.prototype = {bar: function() { ... };
Modifier and Type | Field and Description |
---|---|
private Node |
assign |
private Node |
key |
private Node |
map |
private JSModule |
module |
private Var |
rootVar |
private Node |
value |
Constructor and Description |
---|
LiteralProperty(Node key,
Node value,
Node map,
Node assign,
Var rootVar,
JSModule module) |
Modifier and Type | Method and Description |
---|---|
JSModule |
getModule()
Returns the module where this appears.
|
Node |
getPrototype()
Returns the GETPROP node that refers to the prototype.
|
Var |
getRootVar()
The variable for the root of this symbol.
|
Node |
getValue()
Returns the value of this property.
|
void |
remove(AbstractCompiler compiler)
Remove the declaration from the AST.
|
private final Node key
private final Node value
private final Node map
private final Node assign
private final Var rootVar
private final JSModule module
public Var getRootVar()
AnalyzePrototypeProperties.Symbol
getRootVar
in interface AnalyzePrototypeProperties.Symbol
public void remove(AbstractCompiler compiler)
AnalyzePrototypeProperties.Symbol
remove
in interface AnalyzePrototypeProperties.Symbol
public Node getPrototype()
AnalyzePrototypeProperties.Property
getPrototype
in interface AnalyzePrototypeProperties.Property
public Node getValue()
AnalyzePrototypeProperties.Property
getValue
in interface AnalyzePrototypeProperties.Property
public JSModule getModule()
AnalyzePrototypeProperties.Symbol
getModule
in interface AnalyzePrototypeProperties.Symbol