Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Method and Description |
---|---|
(package private) static PolymerClassDefinition |
PolymerClassDefinition.extractFromCallNode(Node callNode,
AbstractCompiler compiler,
GlobalNamespace globalNames)
Validates the class definition and if valid, destructively extracts the class definition from
the AST.
|
Modifier and Type | Method and Description |
---|---|
private void |
PolymerClassRewriter.addInterfaceExterns(PolymerClassDefinition cls,
java.util.List<PolymerPass.MemberDefinition> readOnlyProps)
Adds an interface for the given ClassDefinition to externs.
|
private void |
PolymerClassRewriter.appendBehaviorMembersToBlock(PolymerClassDefinition cls,
Node block)
Appends all required behavior functions and non-property members to the given block.
|
private void |
PolymerPass.appendPolymerElementExterns(PolymerClassDefinition def)
Duplicates the PolymerElement externs with a different element base class if needed.
|
private void |
PolymerClassRewriter.appendPropertiesToBlock(PolymerClassDefinition cls,
Node block,
java.lang.String basePath)
Appends all properties in the ClassDefinition to the prototype of the custom element.
|
private JSDocInfoBuilder |
PolymerClassRewriter.getConstructorDoc(PolymerClassDefinition cls) |
private static java.lang.String |
PolymerClassRewriter.getInterfaceName(PolymerClassDefinition cls) |
static java.lang.String |
PolymerPassStaticUtils.getPolymerElementType(PolymerClassDefinition cls) |
private com.google.common.collect.ImmutableList<PolymerPass.MemberDefinition> |
PolymerClassRewriter.parseReadOnlyProperties(PolymerClassDefinition cls,
Node block)
Generates the _set* setters for readonly properties and appends them to the given block.
|
(package private) void |
PolymerClassRewriter.rewritePolymerClass(Node exprRoot,
PolymerClassDefinition cls,
boolean isInGlobalScope)
Rewrites a given call to Polymer({}) to a set of declarations and assignments which can be
understood by the compiler.
|