fix(build): clang-format
This commit is contained in:
parent
93055f78ea
commit
66ec4d1f5c
|
@ -102,7 +102,7 @@ export class Serializer {
|
||||||
|
|
||||||
class ASTWithSourceSerializer {
|
class ASTWithSourceSerializer {
|
||||||
static serialize(tree: ASTWithSource): Object {
|
static serialize(tree: ASTWithSource): Object {
|
||||||
return { 'input': tree.source, 'location': tree.location };
|
return {'input': tree.source, 'location': tree.location};
|
||||||
}
|
}
|
||||||
|
|
||||||
static deserialize(obj: any, data: string): AST {
|
static deserialize(obj: any, data: string): AST {
|
||||||
|
@ -177,15 +177,16 @@ class DirectiveBinderSerializer {
|
||||||
class ElementBinderSerializer {
|
class ElementBinderSerializer {
|
||||||
static serialize(binder: ElementBinder): Object {
|
static serialize(binder: ElementBinder): Object {
|
||||||
return {
|
return {
|
||||||
'index': binder.index, 'parentIndex': binder.parentIndex,
|
'index': binder.index,
|
||||||
'distanceToParent': binder.distanceToParent,
|
'parentIndex': binder.parentIndex,
|
||||||
'directives': Serializer.serialize(binder.directives, DirectiveBinder),
|
'distanceToParent': binder.distanceToParent,
|
||||||
'nestedProtoView': Serializer.serialize(binder.nestedProtoView, ProtoViewDto),
|
'directives': Serializer.serialize(binder.directives, DirectiveBinder),
|
||||||
'propertyBindings': Serializer.serialize(binder.propertyBindings, ElementPropertyBinding),
|
'nestedProtoView': Serializer.serialize(binder.nestedProtoView, ProtoViewDto),
|
||||||
'variableBindings': Serializer.mapToObject(binder.variableBindings),
|
'propertyBindings': Serializer.serialize(binder.propertyBindings, ElementPropertyBinding),
|
||||||
'eventBindings': Serializer.serialize(binder.eventBindings, EventBinding),
|
'variableBindings': Serializer.mapToObject(binder.variableBindings),
|
||||||
'textBindings': Serializer.serialize(binder.textBindings, ASTWithSource),
|
'eventBindings': Serializer.serialize(binder.eventBindings, EventBinding),
|
||||||
'readAttributes': Serializer.mapToObject(binder.readAttributes)
|
'textBindings': Serializer.serialize(binder.textBindings, ASTWithSource),
|
||||||
|
'readAttributes': Serializer.mapToObject(binder.readAttributes)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,8 +210,10 @@ class ProtoViewDtoSerializer {
|
||||||
static serialize(view: ProtoViewDto): Object {
|
static serialize(view: ProtoViewDto): Object {
|
||||||
// TODO: fix render refs and write a serializer for them
|
// TODO: fix render refs and write a serializer for them
|
||||||
return {
|
return {
|
||||||
'render': null, 'elementBinders': Serializer.serialize(view.elementBinders, ElementBinder),
|
'render': null,
|
||||||
'variableBindings': Serializer.mapToObject(view.variableBindings), 'type': view.type
|
'elementBinders': Serializer.serialize(view.elementBinders, ElementBinder),
|
||||||
|
'variableBindings': Serializer.mapToObject(view.variableBindings),
|
||||||
|
'type': view.type
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue