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 { JavaScriptDocument } from '../javascript/javascript-document';
|
17 | import { Result } from '../model/analysis';
|
18 | import { ScannedReference, Warning } from '../model/model';
|
19 | import { Observer, ScannedPolymerElement } from './polymer-element';
|
20 | export declare type BehaviorReferenceOrWarning = {
|
21 | kind: 'warning';
|
22 | warning: Warning;
|
23 | } | {
|
24 | kind: 'behaviorReference';
|
25 | reference: ScannedReference<'behavior'>;
|
26 | };
|
27 | export declare function getBehaviorReference(argNode: babel.Node, document: JavaScriptDocument, path: NodePath): Result<ScannedReference<'behavior'>, Warning>;
|
28 | export declare type PropertyHandlers = {
|
29 | [key: string]: (node: babel.Node) => void;
|
30 | };
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export declare function declarationPropertyHandlers(declaration: ScannedPolymerElement, document: JavaScriptDocument, path: NodePath): PropertyHandlers;
|
36 | export declare function extractObservers(observersArray: babel.Node, document: JavaScriptDocument): undefined | {
|
37 | observers: Observer[];
|
38 | warnings: Warning[];
|
39 | };
|