Revert "refactor(compiler): move findDeclaration into the StaticReflector"

This reverts commit e7025c9423.
This commit is contained in:
Tobias Bosch
2016-11-23 12:09:09 -08:00
parent ba52f2f252
commit 76f53f929c
13 changed files with 704 additions and 612 deletions

View File

@ -6,14 +6,14 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgHostContext} from '@angular/compiler-cli/src/ng_host';
import {ReflectorHostContext} from '@angular/compiler-cli/src/reflector_host';
import * as ts from 'typescript';
export type Entry = string | Directory;
export interface Directory { [name: string]: Entry; }
export class MockContext implements NgHostContext {
export class MockContext implements ReflectorHostContext {
constructor(public currentDirectory: string, private files: Entry) {}
fileExists(fileName: string): boolean { return typeof this.getEntry(fileName) === 'string'; }