1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | import { NodePath } from '@babel/traverse';
|
15 | import * as babel from '@babel/types';
|
16 | import { PrototypeMemberFinder } from '../javascript/class-scanner';
|
17 | import { Visitor } from '../javascript/estree-visitor';
|
18 | import { JavaScriptDocument } from '../javascript/javascript-document';
|
19 | import * as jsdoc from '../javascript/jsdoc';
|
20 | import { Warning } from '../model/model';
|
21 | import { ScannedPolymerElementMixin } from './polymer-element-mixin';
|
22 | export declare class MixinVisitor implements Visitor {
|
23 | mixins: ScannedPolymerElementMixin[];
|
24 | private _document;
|
25 | private _currentMixin;
|
26 | private _currentMixinNode;
|
27 | private _currentMixinFunction;
|
28 | private _prototypeMemberFinder;
|
29 | readonly warnings: Warning[];
|
30 | constructor(document: JavaScriptDocument, prototypeMemberFinder: PrototypeMemberFinder);
|
31 | enterAssignmentExpression(node: babel.AssignmentExpression, _parent: babel.Node, path: NodePath): void;
|
32 | enterFunctionDeclaration(node: babel.FunctionDeclaration, _parent: babel.Node, path: NodePath): void;
|
33 | leaveFunctionDeclaration(node: babel.FunctionDeclaration, _parent: babel.Node): void;
|
34 | enterVariableDeclaration(node: babel.VariableDeclaration, _parent: babel.Node, path: NodePath): void;
|
35 | leaveVariableDeclaration(node: babel.VariableDeclaration, _parent: babel.Node): void;
|
36 | private tryInitializeMixin;
|
37 | private clearOnLeave;
|
38 | enterFunctionExpression(node: babel.FunctionExpression, _parent: babel.Node): void;
|
39 | enterArrowFunctionExpression(node: babel.ArrowFunctionExpression, _parent: babel.Node): void;
|
40 | enterClassExpression(node: babel.ClassExpression, parent: babel.Node): void;
|
41 | enterClassDeclaration(node: babel.ClassDeclaration, _parent: babel.Node): void;
|
42 | private _handleClass;
|
43 | }
|
44 | export declare function hasMixinFunctionDocTag(docs: jsdoc.Annotation): boolean;
|
45 | export declare function hasMixinClassDocTag(docs: jsdoc.Annotation): boolean;
|