Commit 7f8eb796 authored by Gregory Casamento's avatar Gregory Casamento
Browse files

Change literals to String or Number objects as appropriate.

parent babb629d
......@@ -19,8 +19,15 @@
}
}
- (NSString *)toCode {
return self.value;
- (NSString *)toCode
{
NSString *result = self.value;
SwiftType atype = [self getType].type;
if(atype == TYPE_STRING || atype == TYPE_NUMBER)
{
result = [@"@" stringByAppendingString:result];
}
return result;
}
@end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment