X Tutup
Skip to content

Commit 66ec4d1

Browse files
committed
fix(build): clang-format
1 parent 93055f7 commit 66ec4d1

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

modules/angular2/src/web-workers/shared/serializer.ts

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class Serializer {
102102

103103
class ASTWithSourceSerializer {
104104
static serialize(tree: ASTWithSource): Object {
105-
return { 'input': tree.source, 'location': tree.location };
105+
return {'input': tree.source, 'location': tree.location};
106106
}
107107

108108
static deserialize(obj: any, data: string): AST {
@@ -177,15 +177,16 @@ class DirectiveBinderSerializer {
177177
class ElementBinderSerializer {
178178
static serialize(binder: ElementBinder): Object {
179179
return {
180-
'index': binder.index, 'parentIndex': binder.parentIndex,
181-
'distanceToParent': binder.distanceToParent,
182-
'directives': Serializer.serialize(binder.directives, DirectiveBinder),
183-
'nestedProtoView': Serializer.serialize(binder.nestedProtoView, ProtoViewDto),
184-
'propertyBindings': Serializer.serialize(binder.propertyBindings, ElementPropertyBinding),
185-
'variableBindings': Serializer.mapToObject(binder.variableBindings),
186-
'eventBindings': Serializer.serialize(binder.eventBindings, EventBinding),
187-
'textBindings': Serializer.serialize(binder.textBindings, ASTWithSource),
188-
'readAttributes': Serializer.mapToObject(binder.readAttributes)
180+
'index': binder.index,
181+
'parentIndex': binder.parentIndex,
182+
'distanceToParent': binder.distanceToParent,
183+
'directives': Serializer.serialize(binder.directives, DirectiveBinder),
184+
'nestedProtoView': Serializer.serialize(binder.nestedProtoView, ProtoViewDto),
185+
'propertyBindings': Serializer.serialize(binder.propertyBindings, ElementPropertyBinding),
186+
'variableBindings': Serializer.mapToObject(binder.variableBindings),
187+
'eventBindings': Serializer.serialize(binder.eventBindings, EventBinding),
188+
'textBindings': Serializer.serialize(binder.textBindings, ASTWithSource),
189+
'readAttributes': Serializer.mapToObject(binder.readAttributes)
189190
};
190191
}
191192

@@ -209,8 +210,10 @@ class ProtoViewDtoSerializer {
209210
static serialize(view: ProtoViewDto): Object {
210211
// TODO: fix render refs and write a serializer for them
211212
return {
212-
'render': null, 'elementBinders': Serializer.serialize(view.elementBinders, ElementBinder),
213-
'variableBindings': Serializer.mapToObject(view.variableBindings), 'type': view.type
213+
'render': null,
214+
'elementBinders': Serializer.serialize(view.elementBinders, ElementBinder),
215+
'variableBindings': Serializer.mapToObject(view.variableBindings),
216+
'type': view.type
214217
};
215218
}
216219

0 commit comments

Comments
 (0)
X Tutup