diff --git a/modules/@angular/compiler/src/css/lexer.ts b/modules/@angular/compiler/src/css_lexer.ts similarity index 98% rename from modules/@angular/compiler/src/css/lexer.ts rename to modules/@angular/compiler/src/css_lexer.ts index 936f305abd..53309a8410 100644 --- a/modules/@angular/compiler/src/css/lexer.ts +++ b/modules/@angular/compiler/src/css_lexer.ts @@ -1,9 +1,8 @@ -import {$$, $0, $9, $A, $AMPERSAND, $AT, $BACKSLASH, $BANG, $CARET, $COLON, $COMMA, $CR, $DQ, $EOF, $EQ, $FF, $GT, $HASH, $LBRACE, $LBRACKET, $LF, $LPAREN, $MINUS, $PERCENT, $PERIOD, $PIPE, $PLUS, $QUESTION, $RBRACE, $RBRACKET, $RPAREN, $SEMICOLON, $SLASH, $SQ, $STAR, $TILDA, $VTAB, $Z, $_, $a, $z, isWhitespace} from '../chars'; +import {$$, $0, $9, $A, $AMPERSAND, $AT, $BACKSLASH, $BANG, $CARET, $COLON, $COMMA, $CR, $DQ, $EOF, $EQ, $FF, $GT, $HASH, $LBRACE, $LBRACKET, $LF, $LPAREN, $MINUS, $PERCENT, $PERIOD, $PIPE, $PLUS, $QUESTION, $RBRACE, $RBRACKET, $RPAREN, $SEMICOLON, $SLASH, $SPACE, $SQ, $STAR, $TAB, $TILDA, $VTAB, $Z, $_, $a, $z, isWhitespace} from './chars'; +import {BaseException} from './facade/exceptions'; +import {StringWrapper, isPresent, resolveEnumToken} from './facade/lang'; -import {BaseException} from '../facade/exceptions'; -import {StringWrapper, isPresent, resolveEnumToken} from '../facade/lang'; - -export {$AT, $COLON, $COMMA, $EOF, $GT, $LBRACE, $LBRACKET, $LPAREN, $PLUS, $RBRACE, $RBRACKET, $RPAREN, $SEMICOLON, $SLASH, $SPACE, $TAB, $TILDA, isWhitespace} from '../chars'; +export {$AT, $COLON, $COMMA, $EOF, $GT, $LBRACE, $LBRACKET, $LPAREN, $PLUS, $RBRACE, $RBRACKET, $RPAREN, $SEMICOLON, $SLASH, $SPACE, $TAB, $TILDA, isWhitespace} from './chars'; export enum CssTokenType { EOF, diff --git a/modules/@angular/compiler/src/css/parser.ts b/modules/@angular/compiler/src/css_parser.ts similarity index 99% rename from modules/@angular/compiler/src/css/parser.ts rename to modules/@angular/compiler/src/css_parser.ts index db7ca1d449..d96056a5cc 100644 --- a/modules/@angular/compiler/src/css/parser.ts +++ b/modules/@angular/compiler/src/css_parser.ts @@ -1,11 +1,10 @@ -import {$AT, $COLON, $COMMA, $EOF, $GT, $LBRACE, $LBRACKET, $LPAREN, $PLUS, $RBRACE, $RBRACKET, $RPAREN, $SEMICOLON, $SLASH, $SPACE, $TAB, $TILDA, CssLexerMode, CssScanner, CssScannerError, CssToken, CssTokenType, generateErrorMessage, isNewline, isWhitespace} from '@angular/compiler/src/css/lexer'; -import {ParseError, ParseLocation, ParseSourceFile, ParseSourceSpan} from '@angular/compiler/src/parse_util'; - -import {NumberWrapper, StringWrapper, bitWiseAnd, bitWiseNot, bitWiseOr, isPresent} from '../facade/lang'; +import {$AT, $COLON, $COMMA, $EOF, $GT, $LBRACE, $LBRACKET, $LPAREN, $PLUS, $RBRACE, $RBRACKET, $RPAREN, $SEMICOLON, $SLASH, $SPACE, $TAB, $TILDA, CssLexerMode, CssScanner, CssScannerError, CssToken, CssTokenType, generateErrorMessage, isNewline, isWhitespace} from './css_lexer'; +import {NumberWrapper, StringWrapper, bitWiseAnd, bitWiseNot, bitWiseOr, isPresent} from './facade/lang'; +import {ParseError, ParseLocation, ParseSourceFile, ParseSourceSpan} from './parse_util'; const SPACE_OPERATOR = ' '; -export {CssToken} from '@angular/compiler/src/css/lexer'; +export {CssToken} from './css_lexer'; export enum BlockType { Import, diff --git a/modules/@angular/compiler/test/css/lexer_spec.ts b/modules/@angular/compiler/test/css_lexer_spec.ts similarity index 98% rename from modules/@angular/compiler/test/css/lexer_spec.ts rename to modules/@angular/compiler/test/css_lexer_spec.ts index ae1a5a9216..0d2aa63295 100644 --- a/modules/@angular/compiler/test/css/lexer_spec.ts +++ b/modules/@angular/compiler/test/css_lexer_spec.ts @@ -1,7 +1,6 @@ -import {CssLexer, CssLexerMode, CssScannerError, CssToken, CssTokenType} from '@angular/compiler/src/css/lexer'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; - -import {isPresent} from '../../src/facade/lang'; +import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../core/testing/testing_internal'; +import {CssLexer, CssLexerMode, CssScannerError, CssToken, CssTokenType} from '../src/css_lexer'; +import {isPresent} from '../src/facade/lang'; export function main() { function tokenize( diff --git a/modules/@angular/compiler/test/css/parser_spec.ts b/modules/@angular/compiler/test/css_parser_spec.ts similarity index 98% rename from modules/@angular/compiler/test/css/parser_spec.ts rename to modules/@angular/compiler/test/css_parser_spec.ts index 5c12049467..30a8bc293e 100644 --- a/modules/@angular/compiler/test/css/parser_spec.ts +++ b/modules/@angular/compiler/test/css_parser_spec.ts @@ -1,8 +1,7 @@ -import {CssLexer} from '@angular/compiler/src/css/lexer'; -import {BlockType, CssBlockAst, CssBlockDefinitionRuleAst, CssBlockRuleAst, CssDefinitionAst, CssInlineRuleAst, CssKeyframeDefinitionAst, CssKeyframeRuleAst, CssMediaQueryRuleAst, CssParseError, CssParser, CssRuleAst, CssSelectorAst, CssSelectorRuleAst, CssStyleSheetAst, CssStyleValueAst, ParsedCssResult} from '@angular/compiler/src/css/parser'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; - -import {BaseException} from '../../src/facade/exceptions'; +import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../core/testing/testing_internal'; +import {CssLexer} from '../src/css_lexer'; +import {BlockType, CssBlockAst, CssBlockDefinitionRuleAst, CssBlockRuleAst, CssDefinitionAst, CssInlineRuleAst, CssKeyframeDefinitionAst, CssKeyframeRuleAst, CssMediaQueryRuleAst, CssParseError, CssParser, CssRuleAst, CssSelectorAst, CssSelectorRuleAst, CssStyleSheetAst, CssStyleValueAst, ParsedCssResult} from '../src/css_parser'; +import {BaseException} from '../src/facade/exceptions'; export function assertTokens(tokens: any /** TODO #9100 */, valuesArr: any /** TODO #9100 */) { for (var i = 0; i < tokens.length; i++) { diff --git a/modules/@angular/compiler/test/css/visitor_spec.ts b/modules/@angular/compiler/test/css_visitor_spec.ts similarity index 97% rename from modules/@angular/compiler/test/css/visitor_spec.ts rename to modules/@angular/compiler/test/css_visitor_spec.ts index a40fcda8f0..4dbe6c554e 100644 --- a/modules/@angular/compiler/test/css/visitor_spec.ts +++ b/modules/@angular/compiler/test/css_visitor_spec.ts @@ -1,9 +1,8 @@ -import {CssLexer} from '@angular/compiler/src/css/lexer'; -import {BlockType, CssAst, CssAstVisitor, CssAtRulePredicateAst, CssBlockAst, CssBlockDefinitionRuleAst, CssBlockRuleAst, CssDefinitionAst, CssInlineRuleAst, CssKeyframeDefinitionAst, CssKeyframeRuleAst, CssMediaQueryRuleAst, CssParseError, CssParser, CssPseudoSelectorAst, CssRuleAst, CssSelectorAst, CssSelectorRuleAst, CssSimpleSelectorAst, CssStyleSheetAst, CssStyleValueAst, CssStylesBlockAst, CssToken, CssUnknownRuleAst, CssUnknownTokenListAst} from '@angular/compiler/src/css/parser'; -import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing/testing_internal'; - -import {BaseException} from '../../src/facade/exceptions'; -import {NumberWrapper, StringWrapper, isPresent} from '../../src/facade/lang'; +import {afterEach, beforeEach, ddescribe, describe, expect, iit, it, xit} from '../../core/testing/testing_internal'; +import {CssLexer} from '../src/css_lexer'; +import {BlockType, CssAst, CssAstVisitor, CssAtRulePredicateAst, CssBlockAst, CssBlockDefinitionRuleAst, CssBlockRuleAst, CssDefinitionAst, CssInlineRuleAst, CssKeyframeDefinitionAst, CssKeyframeRuleAst, CssMediaQueryRuleAst, CssParseError, CssParser, CssPseudoSelectorAst, CssRuleAst, CssSelectorAst, CssSelectorRuleAst, CssSimpleSelectorAst, CssStyleSheetAst, CssStyleValueAst, CssStylesBlockAst, CssToken, CssUnknownRuleAst, CssUnknownTokenListAst} from '../src/css_parser'; +import {BaseException} from '../src/facade/exceptions'; +import {NumberWrapper, StringWrapper, isPresent} from '../src/facade/lang'; function _assertTokens(tokens: CssToken[], valuesArr: string[]): void { expect(tokens.length).toEqual(valuesArr.length);