Skip to content

Commit b40e3fb

Browse files
cupojoekostub
authored andcommitted
Adds missing nullability annotations to MTMathAtomFactory.h (#124)
1 parent 6222c7f commit b40e3fb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

iosMath/lib/MTMathAtomFactory.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
#import "MTMathList.h"
1515

16+
NS_ASSUME_NONNULL_BEGIN
17+
1618
FOUNDATION_EXPORT NSString *const MTSymbolMultiplication;
1719
FOUNDATION_EXPORT NSString *const MTSymbolDivision;
1820
FOUNDATION_EXPORT NSString *const MTSymbolFractionSlash;
@@ -120,7 +122,7 @@ FOUNDATION_EXPORT NSString *const MTSymbolDegree;
120122
@note This is not an exact reverse of the above function. Some delimiters have two names (e.g.
121123
`<` and `langle`) and this function always returns the shorter name.
122124
*/
123-
+ (NSString*) delimiterNameForBoundaryAtom:(MTMathAtom*) boundary;
125+
+ (nullable NSString*) delimiterNameForBoundaryAtom:(MTMathAtom*) boundary;
124126

125127
/** Returns a font style associated with the name. If none is found returns NSNotFound. */
126128
+ (MTFontStyle) fontStyleWithName:(NSString*) fontName;
@@ -142,7 +144,7 @@ FOUNDATION_EXPORT NSString *const MTSymbolDegree;
142144
@note The reason this function returns a `MTMathAtom` and not a `MTMathTable` is because some
143145
matrix environments are have builtin delimiters added to the table and hence are returned as inner atoms.
144146
*/
145-
+ (MTMathAtom*) tableWithEnvironment:(nullable NSString*) env rows:(NSArray<NSArray<MTMathList*>*>*) rows error:(NSError**) error;
147+
+ (nullable MTMathAtom*) tableWithEnvironment:(nullable NSString*) env rows:(NSArray<NSArray<MTMathList*>*>*) rows error:(NSError**) error;
146148
@end
147149

148-
150+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)