Skip to content

Commit 3537eb9

Browse files
committed
typo
1 parent 6b21b8e commit 3537eb9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/pigeon/lib/swift_generator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ import FlutterMacOS
194194
customEnumNames.contains(field.type.baseName)) {
195195
indent.writeln('var ${field.name}: $fieldType? = nil');
196196
indent.write(
197-
'if let ${field.name}RawValue = nsnullToNil(value: $listValue) as! Int? ');
197+
'if let ${field.name}RawValue = nullToNil(value: $listValue) as! Int? ');
198198
indent.addScoped('{', '}', () {
199199
indent.writeln(
200200
'${field.name} = $fieldType(rawValue: ${field.name}RawValue)');

packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ struct AllNullableTypes {
145145
let nullableMapWithAnnotations = (list[11] is NSNull) ? nullToNil(value: list[11]) as! [String?: String?]? : list[11] as! [String?: String?]?
146146
let nullableMapWithObject = (list[12] is NSNull) ? nullToNil(value: list[12]) as! [String?: Any?]? : list[12] as! [String?: Any?]?
147147
var aNullableEnum: AnEnum? = nil
148-
if let aNullableEnumRawValue = nsnullToNil(value: list[13]) as! Int? {
148+
if let aNullableEnumRawValue = nullToNil(value: list[13]) as! Int? {
149149
aNullableEnum = AnEnum(rawValue: aNullableEnumRawValue)
150150
}
151151
let aNullableString = (list[14] is NSNull) ? nullToNil(value: list[14]) as! String? : list[14] as! String?

packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ struct AllNullableTypes {
145145
let nullableMapWithAnnotations = (list[11] is NSNull) ? nullToNil(value: list[11]) as! [String?: String?]? : list[11] as! [String?: String?]?
146146
let nullableMapWithObject = (list[12] is NSNull) ? nullToNil(value: list[12]) as! [String?: Any?]? : list[12] as! [String?: Any?]?
147147
var aNullableEnum: AnEnum? = nil
148-
if let aNullableEnumRawValue = nsnullToNil(value: list[13]) as! Int? {
148+
if let aNullableEnumRawValue = nullToNil(value: list[13]) as! Int? {
149149
aNullableEnum = AnEnum(rawValue: aNullableEnumRawValue)
150150
}
151151
let aNullableString = (list[14] is NSNull) ? nullToNil(value: list[14]) as! String? : list[14] as! String?

0 commit comments

Comments
 (0)