chore: clang-reformat
This commit is contained in:
@ -17,7 +17,7 @@ export function emit(): Promise<string> {
|
||||
// Generator
|
||||
export function main(args: string[]) {
|
||||
emit().then((source) => {
|
||||
// debug: console.error(source);
|
||||
print(source);
|
||||
});
|
||||
// debug: console.error(source);
|
||||
print(source);
|
||||
});
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ export function emit() {
|
||||
// Generator
|
||||
export function main(args: string[]) {
|
||||
emit().then((source) => {
|
||||
// debug: console.error(source);
|
||||
print(source);
|
||||
});
|
||||
// debug: console.error(source);
|
||||
print(source);
|
||||
});
|
||||
}
|
||||
|
@ -15,8 +15,8 @@ export function getExpressions(): any {
|
||||
export function emit() {
|
||||
var emitter = IS_DART ? new DartEmitter() : new TypeScriptEmitter();
|
||||
var emittedCode =
|
||||
emitter.emitStatements(assetUrl('compiler', 'output/output_emitter_codegen_typed', 'test'),
|
||||
codegenStmts, codegenExportsVars);
|
||||
emitter.emitStatements(assetUrl('compiler', 'output/output_emitter_codegen_typed', 'test'),
|
||||
codegenStmts, codegenExportsVars);
|
||||
return emittedCode;
|
||||
}
|
||||
|
||||
|
@ -10,12 +10,11 @@ export function getExpressions(): any {
|
||||
}
|
||||
|
||||
// Generator
|
||||
export function emit () {
|
||||
export function emit() {
|
||||
var emitter = new JavaScriptEmitter();
|
||||
var emittedCode =
|
||||
emitter.emitStatements(
|
||||
assetUrl('compiler', 'output/output_emitter_codegen_untyped', 'test'),
|
||||
codegenStmts, codegenExportsVars);
|
||||
emitter.emitStatements(assetUrl('compiler', 'output/output_emitter_codegen_untyped', 'test'),
|
||||
codegenStmts, codegenExportsVars);
|
||||
return emittedCode;
|
||||
}
|
||||
|
||||
|
@ -20,9 +20,12 @@ import {EventEmitter} from '@angular/core';
|
||||
import {ViewType} from '@angular/core/src/linker/view_type';
|
||||
import {BaseException} from '@angular/core';
|
||||
import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter';
|
||||
import {browserDetection} from '@angular/platform-browser/testing'
|
||||
import {
|
||||
browserDetection
|
||||
} from '@angular/platform-browser/testing'
|
||||
|
||||
export function main() {
|
||||
export function
|
||||
main() {
|
||||
var outputDefs = [];
|
||||
outputDefs.push({
|
||||
'getExpressions': () => interpretStatements(codegenStmts, 'getExpressions',
|
||||
|
@ -19,11 +19,8 @@ var testDataIdentifier = new CompileIdentifierMetadata({
|
||||
runtime: ExternalClass
|
||||
});
|
||||
|
||||
var eventEmitterIdentifier = new CompileIdentifierMetadata({
|
||||
name: 'EventEmitter',
|
||||
moduleUrl: assetUrl('core'),
|
||||
runtime: EventEmitter
|
||||
});
|
||||
var eventEmitterIdentifier = new CompileIdentifierMetadata(
|
||||
{name: 'EventEmitter', moduleUrl: assetUrl('core'), runtime: EventEmitter});
|
||||
|
||||
var enumIdentifier = new CompileIdentifierMetadata({
|
||||
name: 'ViewType.HOST',
|
||||
@ -31,11 +28,8 @@ var enumIdentifier = new CompileIdentifierMetadata({
|
||||
runtime: ViewType.HOST
|
||||
});
|
||||
|
||||
var baseExceptionIdentifier = new CompileIdentifierMetadata({
|
||||
name: 'BaseException',
|
||||
moduleUrl: assetUrl('core'),
|
||||
runtime: BaseException
|
||||
});
|
||||
var baseExceptionIdentifier = new CompileIdentifierMetadata(
|
||||
{name: 'BaseException', moduleUrl: assetUrl('core'), runtime: BaseException});
|
||||
|
||||
export var codegenExportsVars = [
|
||||
'getExpressions',
|
||||
|
@ -16,17 +16,27 @@ import {
|
||||
ComponentFixtureNoNgZone
|
||||
} from '@angular/compiler/testing';
|
||||
import {AsyncTestCompleter} from '@angular/core/testing/testing_internal';
|
||||
import {Injectable, provide, Component, Input, ViewMetadata, ComponentResolver} from '@angular/core';
|
||||
import {
|
||||
Injectable,
|
||||
provide,
|
||||
Component,
|
||||
Input,
|
||||
ViewMetadata,
|
||||
ComponentResolver
|
||||
} from '@angular/core';
|
||||
import {NgIf} from '@angular/common';
|
||||
import {IS_DART} from '../src/facade/lang';
|
||||
import {PromiseWrapper} from '../src/facade/promise';
|
||||
import {dispatchEvent} from "@angular/platform-browser/testing";
|
||||
import {withProviders} from "@angular/core/testing/test_injector"
|
||||
import {
|
||||
withProviders
|
||||
} from "@angular/core/testing/test_injector"
|
||||
|
||||
@Component(
|
||||
{selector: 'child-comp', template: `<span>Original {{childBinding}}</span>`, directives: []})
|
||||
@Injectable()
|
||||
class ChildComp {
|
||||
@Component({
|
||||
selector: 'child-comp',
|
||||
template: `<span>Original {{childBinding}}</span>`,
|
||||
directives: []
|
||||
}) @Injectable() class ChildComp {
|
||||
childBinding: string;
|
||||
constructor() { this.childBinding = 'Child'; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user