refactor(compiler): remove extra imports (#37246)
There are some extra imports in the compiler package. These imports are not used anywhere in the file. So, removed those extra imports PR Close #37246
This commit is contained in:
parent
886e3ebcca
commit
f150a304e8
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {CompilerConfig} from '../config';
|
import {CompilerConfig} from '../config';
|
||||||
import {MissingTranslationStrategy, ViewEncapsulation} from '../core';
|
import {ViewEncapsulation} from '../core';
|
||||||
import {DirectiveNormalizer} from '../directive_normalizer';
|
import {DirectiveNormalizer} from '../directive_normalizer';
|
||||||
import {DirectiveResolver} from '../directive_resolver';
|
import {DirectiveResolver} from '../directive_resolver';
|
||||||
import {Lexer} from '../expression_parser/lexer';
|
import {Lexer} from '../expression_parser/lexer';
|
||||||
|
@ -32,7 +32,7 @@ import {AotCompiler} from './compiler';
|
||||||
import {AotCompilerHost} from './compiler_host';
|
import {AotCompilerHost} from './compiler_host';
|
||||||
import {AotCompilerOptions} from './compiler_options';
|
import {AotCompilerOptions} from './compiler_options';
|
||||||
import {StaticReflector} from './static_reflector';
|
import {StaticReflector} from './static_reflector';
|
||||||
import {StaticSymbol, StaticSymbolCache} from './static_symbol';
|
import {StaticSymbolCache} from './static_symbol';
|
||||||
import {StaticSymbolResolver} from './static_symbol_resolver';
|
import {StaticSymbolResolver} from './static_symbol_resolver';
|
||||||
import {AotSummaryResolver} from './summary_resolver';
|
import {AotSummaryResolver} from './summary_resolver';
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
|
|
||||||
import {CompileNgModuleMetadata, tokenReference} from '../compile_metadata';
|
import {CompileNgModuleMetadata, tokenReference} from '../compile_metadata';
|
||||||
import {Route} from '../core';
|
import {Route} from '../core';
|
||||||
import {CompileMetadataResolver} from '../metadata_resolver';
|
|
||||||
|
|
||||||
import {AotCompilerHost} from './compiler_host';
|
|
||||||
import {StaticReflector} from './static_reflector';
|
import {StaticReflector} from './static_reflector';
|
||||||
import {StaticSymbol} from './static_symbol';
|
import {StaticSymbol} from './static_symbol';
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,7 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {CompileIdentifierMetadata} from './compile_metadata';
|
|
||||||
import {MissingTranslationStrategy, ViewEncapsulation} from './core';
|
import {MissingTranslationStrategy, ViewEncapsulation} from './core';
|
||||||
import {Identifiers} from './identifiers';
|
|
||||||
import * as o from './output/output_ast';
|
|
||||||
import {noUndefined} from './util';
|
import {noUndefined} from './util';
|
||||||
|
|
||||||
export class CompilerConfig {
|
export class CompilerConfig {
|
||||||
|
|
|
@ -6,15 +6,9 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import {StaticSymbol} from '../aot/static_symbol';
|
|
||||||
import {CompileIdentifierMetadata} from '../compile_metadata';
|
|
||||||
|
|
||||||
import {AbstractEmitterVisitor, CATCH_ERROR_VAR, CATCH_STACK_VAR, EmitterVisitorContext, OutputEmitter} from './abstract_emitter';
|
import {AbstractEmitterVisitor, CATCH_ERROR_VAR, CATCH_STACK_VAR, EmitterVisitorContext, OutputEmitter} from './abstract_emitter';
|
||||||
import * as o from './output_ast';
|
import * as o from './output_ast';
|
||||||
|
|
||||||
const _debugFilePath = '/debug/lib';
|
|
||||||
|
|
||||||
export function debugOutputAstAsTypeScript(ast: o.Statement|o.Expression|o.Type|any[]): string {
|
export function debugOutputAstAsTypeScript(ast: o.Statement|o.Expression|o.Type|any[]): string {
|
||||||
const converter = new _TsEmitterVisitor();
|
const converter = new _TsEmitterVisitor();
|
||||||
const ctx = EmitterVisitorContext.createRoot();
|
const ctx = EmitterVisitorContext.createRoot();
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {AST, BindingPipe, ImplicitReceiver, MethodCall, PropertyRead, PropertyWrite, RecursiveAstVisitor, SafeMethodCall, SafePropertyRead} from '../../expression_parser/ast';
|
import {AST, BindingPipe, ImplicitReceiver, MethodCall, PropertyRead, PropertyWrite, RecursiveAstVisitor, SafeMethodCall, SafePropertyRead} from '../../expression_parser/ast';
|
||||||
import {CssSelector, SelectorMatcher} from '../../selector';
|
import {SelectorMatcher} from '../../selector';
|
||||||
import {BoundAttribute, BoundEvent, BoundText, Content, Element, Icu, Node, Reference, Template, Text, TextAttribute, Variable, Visitor} from '../r3_ast';
|
import {BoundAttribute, BoundEvent, BoundText, Content, Element, Icu, Node, Reference, Template, Text, TextAttribute, Variable, Visitor} from '../r3_ast';
|
||||||
|
|
||||||
import {BoundTarget, DirectiveMeta, Target, TargetBinder} from './t2_api';
|
import {BoundTarget, DirectiveMeta, Target, TargetBinder} from './t2_api';
|
||||||
|
|
Loading…
Reference in New Issue