UNPKG

1.97 kBTypeScriptView Raw
1import * as ts from 'typescript';
2import * as Lint from 'tslint';
3import * as ast from './cssAst';
4import { SourceMappingVisitor } from '../sourceMappingVisitor';
5import { ComponentMetadata, StyleMetadata } from '../metadata';
6export interface CssAstVisitorCtrl {
7 new (sourceFile: ts.SourceFile, options: Lint.IOptions, context: ComponentMetadata, style: StyleMetadata, templateStart: number): any;
8}
9export declare class BasicCssAstVisitor extends SourceMappingVisitor implements ast.CssAstVisitor {
10 protected _originalOptions: Lint.IOptions;
11 protected context: ComponentMetadata;
12 protected templateStart: number;
13 constructor(sourceFile: ts.SourceFile, _originalOptions: Lint.IOptions, context: ComponentMetadata, style: StyleMetadata, templateStart: number);
14 visitCssValue(ast: ast.CssStyleValueAst, context?: any): any;
15 visitCssInlineRule(ast: ast.CssInlineRuleAst, context?: any): any;
16 visitCssAtRulePredicate(ast: ast.CssAtRulePredicateAst, context?: any): any;
17 visitCssKeyframeRule(ast: ast.CssKeyframeRuleAst, context?: any): any;
18 visitCssKeyframeDefinition(ast: ast.CssKeyframeDefinitionAst, context?: any): any;
19 visitCssMediaQueryRule(ast: ast.CssMediaQueryRuleAst, context?: any): any;
20 visitCssSelectorRule(ast: ast.CssSelectorRuleAst, context?: any): any;
21 visitCssSelector(ast: ast.CssSelectorAst, context?: any): any;
22 visitCssSimpleSelector(ast: ast.CssSimpleSelectorAst, context?: any): any;
23 visitCssPseudoSelector(ast: ast.CssPseudoSelectorAst, context?: any): any;
24 visitCssDefinition(ast: ast.CssDefinitionAst, context?: any): any;
25 visitCssBlock(ast: ast.CssBlockAst, context?: any): any;
26 visitCssStylesBlock(ast: ast.CssStylesBlockAst, context?: any): any;
27 visitCssStyleSheet(ast: ast.CssStyleSheetAst, context?: any): any;
28 visitCssUnknownRule(ast: ast.CssUnknownRuleAst, context?: any): any;
29 visitCssUnknownTokenList(ast: ast.CssUnknownTokenListAst, context?: any): any;
30}