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
*/
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.
*
* @exportedAs angular2/pipes
*/
export var iterableDiff: List <
PipeFactory >= [new IterableChangesFactory(), new NullPipeFactory()];
export var iterableDiff: List<PipeFactory> = [new IterableChangesFactory(), new NullPipeFactory()];
/**
* Async binding to such types as Observable.
*
* @exportedAs angular2/pipes
*/
export var async: List <
PipeFactory >= [new ObservablePipeFactory(), new PromisePipeFactory(), new NullPipeFactory()];
export var async: List<
PipeFactory> = [new ObservablePipeFactory(), new PromisePipeFactory(), new NullPipeFactory()];
/**
* Uppercase text transform.
*
* @exportedAs angular2/pipes
*/
export var uppercase: List < PipeFactory >= [new UpperCaseFactory(), new NullPipeFactory()];
export var uppercase: List<PipeFactory> = [new UpperCaseFactory(), new NullPipeFactory()];
/**
* Lowercase text transform.
*
* @exportedAs angular2/pipes
*/
export var lowercase: List < PipeFactory >= [new LowerCaseFactory(), new NullPipeFactory()];
export var lowercase: List<PipeFactory> = [new LowerCaseFactory(), new NullPipeFactory()];
/**
* Json stringify transform.
*
* @exportedAs angular2/pipes
*/
export var json: List < PipeFactory >= [new JsonPipeFactory(), new NullPipeFactory()];
export var json: List<PipeFactory> = [new JsonPipeFactory(), new NullPipeFactory()];
export var defaultPipes = {
"iterableDiff": iterableDiff,

View File

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

View File

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