UNPKG

2.13 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4 * This code may only be used under the BSD style license found at
5 * http://polymer.github.io/LICENSE.txt
6 * The complete set of authors may be found at
7 * http://polymer.github.io/AUTHORS.txt
8 * The complete set of contributors may be found at
9 * http://polymer.github.io/CONTRIBUTORS.txt
10 * Code distributed by Google as part of the polymer project is also
11 * subject to an additional IP rights grant found at
12 * http://polymer.github.io/PATENTS.txt
13 */
14import { ImmutableArray } from '../model/immutable';
15import { CssAstNode, Feature, ScannedFeature, SourceRange, Warning } from '../model/model';
16import { ParsedCssDocument, Visitor } from './css-document';
17import { CssScanner } from './css-scanner';
18export declare class CssCustomPropertyScanner implements CssScanner {
19 scan(document: ParsedCssDocument, visit: (visitor: Visitor) => Promise<void>): Promise<{
20 features: CssCustomPropertyAssignment[];
21 warnings: Warning[];
22 }>;
23}
24declare module '../model/queryable' {
25 interface FeatureKindMap {
26 'css-custom-property-assignment': CssCustomPropertyAssignment;
27 }
28}
29export declare class CssCustomPropertyAssignment implements ScannedFeature, Feature {
30 readonly sourceRange: SourceRange;
31 readonly warnings: ImmutableArray<Warning>;
32 readonly kinds: Set<string>;
33 readonly identifiers: Set<string>;
34 readonly name: string;
35 readonly astNode: CssAstNode;
36 constructor(name: string, sourceRange: SourceRange, astNode: CssAstNode);
37 resolve(): this;
38}
39declare module '../model/queryable' {
40 interface FeatureKindMap {
41 'css-custom-property-use': CssCustomPropertyUse;
42 }
43}
44export declare class CssCustomPropertyUse implements ScannedFeature, Feature {
45 readonly sourceRange: SourceRange;
46 readonly warnings: ImmutableArray<Warning>;
47 readonly kinds: Set<string>;
48 readonly identifiers: Set<string>;
49 readonly name: string;
50 readonly astNode: CssAstNode;
51 constructor(name: string, sourceRange: SourceRange, astNode: CssAstNode);
52 resolve(): this;
53}