Skip to content

Commit

Permalink
Fixed code documentation thanks to warnings from the appledoc...
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaz committed Sep 26, 2010
1 parent c3639e5 commit a050b89
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Common/NSException+GBException.h
Expand Up @@ -18,7 +18,7 @@
use specialized exception names, this makes sense...
@param format A human readable message string representing exception reason.
@param ... Variable information to be inserted into the formatted reason.
@param ... A comma separated list of arguments to substitute into the format.
@exception NSException Always thrown ;)
*/
+ (void)raise:(NSString *)format, ...;
Expand All @@ -32,7 +32,7 @@
@param error The error that describes the reason.
@param format A human readable message string explaining the context of the error.
@param ... Variable information to be inserted into the formatted reason.
@param ... A comma separated list of arguments to substitute into the format.
@exception NSException Always thrown ;)
@see exceptionWithError:format:
*/
Expand Down
1 change: 0 additions & 1 deletion Common/NSString+GBString.h
Expand Up @@ -31,7 +31,6 @@
The main purpose of this method is to strip and wordifiy long descriptions by making them suitable for logging and debug messages.
@param string String to strip.
@return Returns stripped description.
@see normalizedDescriptionFromString:
@see maxNormalizedDescriptionLength
Expand Down
2 changes: 1 addition & 1 deletion Model/GBIvarsProvider.h
Expand Up @@ -47,7 +47,7 @@
@warning *Note:* If another instance of the ivar with the same name is registered, an exception is thrown.
@param protocol The ivar to register.
@param ivar The ivar to register.
@exception NSException Thrown if the given ivar is already registered.
*/
- (void)registerIvar:(GBIvarData *)ivar;
Expand Down
6 changes: 3 additions & 3 deletions Model/GBMethodArgument.h
Expand Up @@ -25,7 +25,7 @@
Internally this sends allocated instance `initWithName:types:var:terminationMacros:` message, so check it's documentation for details.
@param argument The name of the method argument, part of method selector.
@param name The name of the method argument, part of method selector.
@param types Array of argument types in the form of `NSString` instances or `nil` if not used.
@param var Array of arguments in the form of `GBMethodArgument` instances or `nil` if not used.
@param macros Array of variable arg termination macros or `nil` if not variable arg.
Expand All @@ -39,7 +39,7 @@
Internally this sends allocated instance `initWithName:types:var:terminationMacros:` message, so check it's documentation for details.
@param argument The name of the method argument, part of method selector.
@param name The name of the method argument, part of method selector.
@param types Array of argument types in the form of `NSString` instances or `nil` if not used.
@param var Array of arguments in the form of `GBMethodArgument` instances or `nil` if not used.
@return Returns initialized object or `nil` if initialization fails.
Expand All @@ -52,7 +52,7 @@
Internally this sends allocated instance `initWithName:types:var:terminationMacros:` message, so check it's documentation for details.
@param argument The name of the method argument, part of method selector.
@param name The name of the method argument, part of method selector.
@return Returns initialized object or `nil` if initialization fails.
@exception NSException Thrown if the argument is `nil` or empty string.
@see initWithName:
Expand Down
2 changes: 1 addition & 1 deletion Model/GBMethodData.h
Expand Up @@ -56,7 +56,7 @@ typedef NSUInteger GBMethodType;

/** Returns autoreleased property data with the given parameters.
@param type The type of method defined by `GBMethodType` enumeration.
@param attributes Array of property attributes in the form of `NSString` instances.
@param components Array of resulting types with last item as property name in the form of `NSString` instances.
@return Returns initialized object or `nil` if initialization fails.
@exception NSException Thrown if either of the given parameters is invalid.
Expand Down
6 changes: 3 additions & 3 deletions Model/GBModelBase.h
Expand Up @@ -22,11 +22,11 @@
/// @name Declared files handling
///---------------------------------------------------------------------------------------

/** Registers the given `GBDeclaredFileData` to `sourceInfos` list.
/** Registers the given `GBSourceInfo` to `sourceInfos` list.
If file data with the same filename already exists in the set, it is replaced with the given one.
@param filename The name of the file to register.
@param data Source information data.
@exception NSException Thrown if the given filename is `nil` or empty.
*/
- (void)registerSourceInfo:(GBSourceInfo *)data;
Expand All @@ -38,7 +38,7 @@
*/
- (NSArray *)sourceInfosSortedByName;

/** The list of all declared file data as `GBDeclaredFileData` objects.
/** The list of all declared file data as `GBSourceInfo` objects.
@see registerSourceInfo:
@see sourceInfosSortedByName
Expand Down
4 changes: 2 additions & 2 deletions Model/GBSourceInfo.h
Expand Up @@ -18,7 +18,7 @@
/// @name Initialization & disposal
///---------------------------------------------------------------------------------------

/** Returns a new autoreleased `GBDeclaredFileData` with the given values.
/** Returns a new autoreleased `GBSourceInfo` with the given values.
@param filename The name of the file without path.
@param lineNumber Line number within the file.
Expand All @@ -37,7 +37,7 @@
@warning *Important:* Note that the given _data_ must not be `nil`. The behavior is undefined in such case!
@param data `GBDeclaredFileData` to compare with.
@param data `GBSourceInfo` to compare with.
@return `NSOrderedAscending` if the value of _data_ is greater than the receiver, `NSOrderedSame` if they’re equal, and `NSOrderedDescending` if the _data_ is less than the receiver.
*/
- (NSComparisonResult)compare:(GBSourceInfo *)data;
Expand Down
2 changes: 1 addition & 1 deletion Model/GBStoreProviding.h
Expand Up @@ -58,7 +58,7 @@
@warning *Note:* If another instance of the protocol with the same name name is registered, an exception is thrown.
@param category The category to register.
@param protocol The protocol to register.
@exception NSException Thrown if the given protocol is already registered.
@see registerClass:
@see registerCategory:
Expand Down
5 changes: 3 additions & 2 deletions Parsing/GBTokenizer.h
Expand Up @@ -38,6 +38,7 @@
/** Returns initialized autoreleased instance using the given source `PKTokenizer`.
@param tokenizer The underlying (worker) tokenizer to use for actual splitting.
@param filename The name of the file without path used for generating source info.
@return Returns initialized instance or `nil` if failed.
@exception NSException Thrown if the given tokenizer or filename is `nil` or filename is empty string.
*/
Expand Down Expand Up @@ -117,7 +118,7 @@
/// @name Information handling
///---------------------------------------------------------------------------------------

/** Returns `GBDeclaredFileData` for current token and filename.
/** Returns `GBSourceInfo` for current token and filename.
This is equivalent to sending `fileDataForToken:` and passing `currentToken` as the _token_ parameter.
Expand All @@ -127,7 +128,7 @@
*/
- (GBSourceInfo *)fileDataForCurrentToken;

/** Returns `GBDeclaredFileData` object describing the given token source information.
/** Returns `GBSourceInfo` object describing the given token source information.
The method converts the given token's offset within the input string to line number and uses that information together with assigned `filename` to prepare the token info object.
Expand Down

0 comments on commit a050b89

Please sign in to comment.