style: fix clang-format glitches

This commit is contained in:
Victor Berchet 2015-05-26 09:18:06 +02:00
parent bb7ffce7eb
commit 26d5d17ebe
3 changed files with 9 additions and 10 deletions

View File

@ -19,44 +19,43 @@ import {isPresent, BaseException} from 'angular2/src/facade/lang';
* *
* @exportedAs angular2/pipes * @exportedAs angular2/pipes
*/ */
export var keyValDiff: List < PipeFactory >= [new KeyValueChangesFactory(), new NullPipeFactory()]; export var keyValDiff: List<PipeFactory> = [new KeyValueChangesFactory(), new NullPipeFactory()];
/** /**
* Structural diffing for `Iterable` types such as `Array`s. * Structural diffing for `Iterable` types such as `Array`s.
* *
* @exportedAs angular2/pipes * @exportedAs angular2/pipes
*/ */
export var iterableDiff: List < export var iterableDiff: List<PipeFactory> = [new IterableChangesFactory(), new NullPipeFactory()];
PipeFactory >= [new IterableChangesFactory(), new NullPipeFactory()];
/** /**
* Async binding to such types as Observable. * Async binding to such types as Observable.
* *
* @exportedAs angular2/pipes * @exportedAs angular2/pipes
*/ */
export var async: List < export var async: List<
PipeFactory >= [new ObservablePipeFactory(), new PromisePipeFactory(), new NullPipeFactory()]; PipeFactory> = [new ObservablePipeFactory(), new PromisePipeFactory(), new NullPipeFactory()];
/** /**
* Uppercase text transform. * Uppercase text transform.
* *
* @exportedAs angular2/pipes * @exportedAs angular2/pipes
*/ */
export var uppercase: List < PipeFactory >= [new UpperCaseFactory(), new NullPipeFactory()]; export var uppercase: List<PipeFactory> = [new UpperCaseFactory(), new NullPipeFactory()];
/** /**
* Lowercase text transform. * Lowercase text transform.
* *
* @exportedAs angular2/pipes * @exportedAs angular2/pipes
*/ */
export var lowercase: List < PipeFactory >= [new LowerCaseFactory(), new NullPipeFactory()]; export var lowercase: List<PipeFactory> = [new LowerCaseFactory(), new NullPipeFactory()];
/** /**
* Json stringify transform. * Json stringify transform.
* *
* @exportedAs angular2/pipes * @exportedAs angular2/pipes
*/ */
export var json: List < PipeFactory >= [new JsonPipeFactory(), new NullPipeFactory()]; export var json: List<PipeFactory> = [new JsonPipeFactory(), new NullPipeFactory()];
export var defaultPipes = { export var defaultPipes = {
"iterableDiff": iterableDiff, "iterableDiff": iterableDiff,

View File

@ -76,7 +76,7 @@ export class DynamicChangeDetector extends AbstractChangeDetector {
hydrated(): boolean { return this.values[0] !== uninitialized; } hydrated(): boolean { return this.values[0] !== uninitialized; }
detectChangesInRecords(throwOnChange: boolean) { detectChangesInRecords(throwOnChange: boolean) {
var protos: List < ProtoRecord >= this.protos; var protos: List<ProtoRecord> = this.protos;
var changes = null; var changes = null;
var isChanged = false; var isChanged = false;

View File

@ -102,7 +102,7 @@ class ProtoRecordBuilder {
constructor() { this.records = []; } constructor() { this.records = []; }
addAst(b: BindingRecord, variableNames: List < string >= null) { addAst(b: BindingRecord, variableNames: List<string> = null) {
var oldLast = ListWrapper.last(this.records); var oldLast = ListWrapper.last(this.records);
if (isPresent(oldLast) && oldLast.bindingRecord.directiveRecord == b.directiveRecord) { if (isPresent(oldLast) && oldLast.bindingRecord.directiveRecord == b.directiveRecord) {
oldLast.lastInDirective = false; oldLast.lastInDirective = false;