refactor(build): explicitly mention src folder in imports

Export files are now directly under the module folder,
e.g. `core/core.js`. With this, an import like `core/core`
won’t need a path mapping (e.g. via `System.paths`) any more.
This adds the `src` folder to all other import statements as well.
This commit is contained in:
Tobias Bosch
2015-02-02 16:25:34 -08:00
committed by Alex Eagle
parent 9db13be4c7
commit 05ffdc9b44
160 changed files with 612 additions and 620 deletions

View File

@ -3,7 +3,7 @@ library reflection.reflection;
import 'reflector.dart';
import 'types.dart';
export 'reflector.dart';
import 'package:facade/lang.dart';
import 'package:facade/src/lang.dart';
class NoReflectionCapabilities {
Function factory(Type type){

View File

@ -1,5 +1,5 @@
import {Type, isPresent} from 'facade/lang';
import {List, ListWrapper} from 'facade/collection';
import {Type, isPresent} from 'facade/src/lang';
import {List, ListWrapper} from 'facade/src/collection';
import {Reflector} from './reflector';
export {Reflector} from './reflector';
import {ReflectionCapabilities} from './reflection_capabilities';

View File

@ -1,5 +1,5 @@
import {Type, isPresent} from 'facade/lang';
import {List, ListWrapper} from 'facade/collection';
import {Type, isPresent} from 'facade/src/lang';
import {List, ListWrapper} from 'facade/src/collection';
import {GetterFn, SetterFn, MethodFn} from './types';
export class ReflectionCapabilities {

View File

@ -1,5 +1,5 @@
import {Type, isPresent, stringify, BaseException} from 'facade/lang';
import {List, ListWrapper, Map, MapWrapper, StringMapWrapper} from 'facade/collection';
import {Type, isPresent, stringify, BaseException} from 'facade/src/lang';
import {List, ListWrapper, Map, MapWrapper, StringMapWrapper} from 'facade/src/collection';
import {SetterFn, GetterFn, MethodFn} from './types';
export {SetterFn, GetterFn, MethodFn} from './types';

View File

@ -1,7 +1,7 @@
import {describe, it, iit, ddescribe, expect, beforeEach} from 'test_lib/test_lib';
import {Reflector} from 'reflection/reflection';
import {ReflectionCapabilities} from 'reflection/reflection_capabilities';
import {CONST} from 'facade/lang';
import {Reflector} from 'reflection/src/reflection';
import {ReflectionCapabilities} from 'reflection/src/reflection_capabilities';
import {CONST} from 'facade/src/lang';
class Annotation {
value;
@ -122,7 +122,7 @@ export function main() {
expect(reflector.annotations(TestObj)).toEqual([1,2]);
});
});
describe("getter", () => {
it("returns a function reading a property", () => {
var getA = reflector.getter('a');