Permalink
Browse files

fixed indent

  • Loading branch information...
1 parent 6075dcd commit b4883574afe0edb44d183c22575e2e77de9b5c2a @masuidrive committed Dec 31, 2011
@@ -65,13 +65,9 @@ - (NSDictionary*)toHash:(id)args
object.clientLanguage, @"clientLanguage",
arrayMap(object.impressions, ^(id item) { return [[[JpMasuidriveTiEvernoteapiAdImpressionsProxy alloc] initWithObject: item] autorelease]; }), @"impressions",
NUMBOOL(object.supportHtml), @"supportHtml",
- dictionaryMap(object.clientProperties, ^(id key, id obj) {
- return [NSArray arrayWithObjects:
- key,
- obj,
- nil];
- })
-, @"clientProperties",
+ dictionaryMap(object.clientProperties, ^(id key, id obj) {
+ return [NSArray arrayWithObjects: key, obj, nil];
+ }), @"clientProperties",
nil];
}
@@ -111,24 +107,16 @@ - (void)setSupportHtml:(id)value
- (id)clientProperties
{
- return dictionaryMap(object.clientProperties, ^(id key, id obj) {
- return [NSArray arrayWithObjects:
- key,
- obj,
- nil];
- })
-;
+ return dictionaryMap(object.clientProperties, ^(id key, id obj) {
+ return [NSArray arrayWithObjects: key, obj, nil];
+ });
}
- (void)setClientProperties:(id)value
{
- object.clientProperties = dictionaryMap(value, ^(id key, id obj) {
- return [NSArray arrayWithObjects:
- key,
- obj,
- nil];
- })
-;
+ object.clientProperties = dictionaryMap(value, ^(id key, id obj) {
+ return [NSArray arrayWithObjects: key, obj, nil];
+ });
}
@@ -56,68 +56,44 @@ - (void)dealloc
- (NSDictionary*)toHash:(id)args
{
return [NSDictionary dictionaryWithObjectsAndKeys:
- dictionaryMap(object.notebookCounts, ^(id key, id obj) {
- return [NSArray arrayWithObjects:
- key,
- obj,
- nil];
- })
-, @"notebookCounts",
- dictionaryMap(object.tagCounts, ^(id key, id obj) {
- return [NSArray arrayWithObjects:
- key,
- obj,
- nil];
- })
-, @"tagCounts",
+ dictionaryMap(object.notebookCounts, ^(id key, id obj) {
+ return [NSArray arrayWithObjects: key, obj, nil];
+ }), @"notebookCounts",
+ dictionaryMap(object.tagCounts, ^(id key, id obj) {
+ return [NSArray arrayWithObjects: key, obj, nil];
+ }), @"tagCounts",
NUMLONG(object.trashCount), @"trashCount",
nil];
}
- (id)notebookCounts
{
- return dictionaryMap(object.notebookCounts, ^(id key, id obj) {
- return [NSArray arrayWithObjects:
- key,
- obj,
- nil];
- })
-;
+ return dictionaryMap(object.notebookCounts, ^(id key, id obj) {
+ return [NSArray arrayWithObjects: key, obj, nil];
+ });
}
- (void)setNotebookCounts:(id)value
{
- object.notebookCounts = dictionaryMap(value, ^(id key, id obj) {
- return [NSArray arrayWithObjects:
- key,
- obj,
- nil];
- })
-;
+ object.notebookCounts = dictionaryMap(value, ^(id key, id obj) {
+ return [NSArray arrayWithObjects: key, obj, nil];
+ });
}
- (id)tagCounts
{
- return dictionaryMap(object.tagCounts, ^(id key, id obj) {
- return [NSArray arrayWithObjects:
- key,
- obj,
- nil];
- })
-;
+ return dictionaryMap(object.tagCounts, ^(id key, id obj) {
+ return [NSArray arrayWithObjects: key, obj, nil];
+ });
}
- (void)setTagCounts:(id)value
{
- object.tagCounts = dictionaryMap(value, ^(id key, id obj) {
- return [NSArray arrayWithObjects:
- key,
- obj,
- nil];
- })
-;
+ object.tagCounts = dictionaryMap(value, ^(id key, id obj) {
+ return [NSArray arrayWithObjects: key, obj, nil];
+ });
}
View
@@ -121,14 +121,11 @@ def titanium(space, label, nsobject=false)
return "[arrayMap(#{label}, ^(id item) { return #{self.type.titanium(space, 'item')}; }) allObjects]"
when :map
- return <<-__OBJC__
- dictionaryMap(#{label}, ^(id key, id obj) {
- return [NSArray arrayWithObjects:
- #{key.titanium(space, 'key', true)},
- #{object.titanium(space, 'obj', true)},
- nil];
- })
- __OBJC__
+ return <<-__OBJC__.chomp
+dictionaryMap(#{label}, ^(id key, id obj) {
+ return [NSArray arrayWithObjects: #{key.titanium(space, 'key', true)}, #{object.titanium(space, 'obj', true)}, nil];
+ })
+__OBJC__
when :struct
return "[[[#{@struct.proxy_class_name} alloc] initWithObject: #{label}] autorelease]"
@@ -161,14 +158,11 @@ def objc(space, label, nsobject=false)
return "[arrayMap(#{label}, ^(id item) { return #{type.objc(space, 'item')}; }) allObjects]"
when :map
- return <<-__OBJC__
- dictionaryMap(#{label}, ^(id key, id obj) {
- return [NSArray arrayWithObjects:
- #{key.objc(space, 'key', true)},
- #{object.objc(space, 'obj', true)},
- nil];
- })
- __OBJC__
+ return <<-__OBJC__.chomp
+dictionaryMap(#{label}, ^(id key, id obj) {
+ return [NSArray arrayWithObjects: #{key.objc(space, 'key', true)}, #{object.objc(space, 'obj', true)}, nil];
+ })
+__OBJC__
when :struct
return "((#{@struct.proxy_class_name}*)#{label}).object"

0 comments on commit b488357

Please sign in to comment.