/
githubmirror
/
react-native
Обзор
Документация
Войти
/
githubmirror
/
react-native
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
scripts/cxx-api/tests/snapshots/should_normalize_nullability/test.h
21 строка
678 B
Dawid Małecki
Normalize Objective-C nullability annotations (#55898)
05 мар 2026, 18:21
05 мар 2026, 18:21
78c8842
Код
Авторство
О чём код?
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ @interface NullabilityTest : NSObject // Different nullability annotation styles that should be normalized - (nonnull NSString *)nonnullMethod; - (nullable NSString *)nullableMethod; - (NSString *__nonnull)legacyNonnullMethod; - (NSString *__nullable)legacyNullableMethod; - (NSString *_Nonnull)modernNonnullMethod; - (NSString *_Nullable)modernNullableMethod; @property (nonatomic, nonnull) NSString *nonnullProperty; @property (nonatomic, nullable) NSString *nullableProperty; @end