polymer-analyzer
Version:
Static analysis for Web Components
63 lines (48 loc) • 877 B
JavaScript
class Element extends HTMLElement { }
customElements.define('my-element', Element);
/**
* @customElement
* @polymer
*/
class AnnotatedElement {
static get is() {
return 'annotated-elem'
}
static staticMeth() { }
}
/**
* @mixinFunction
* @polymer
*/
function Mixin(superClass) {
return class Mixin extends SuperClass { }
}
/**
* @mixinFunction
* @polymer
*/
AnnotatedMixin = CreateMixinSomehow();
class Base {
/** This is a base method. */
baseMethod() {
}
/** Will be overriden by Subclass. */
overriddenMethod() {
}
static baseStaticMethod() {
}
static overriddenStaticMethod() {
}
}
class Subclass extends Base {
/** Overrides the method on Base. */
overriddenMethod() {
}
/** This method only exists on Subclass. */
subMethod() {
}
static overriddenStaticMethod() {
}
static staticSubMethod() {
}
}