Skip to content

Commit

Permalink
Fixed typo (#1315)
Browse files Browse the repository at this point in the history
  • Loading branch information
art-divin committed Mar 28, 2024
1 parent 291c49a commit 0032a6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ This is a breaking change for template code like this:
- Fixed removing back ticks in types names
- Fixed creating output folder if it does not exist
- Fixed inferring variable types with closures and improved inferring types of enum default values
- Fixed enum cases with empty parenthesis not having () associated value
- Fixed enum cases with empty parentheses not having () associated value

## 0.10.1

Expand Down
4 changes: 2 additions & 2 deletions SourceryRuntime/Sources/Linux/AST/Method_Linux.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ public final class Method: NSObject, SourceryModel, Annotated, Documented, Defin
public var selectorName: String

// sourcery: skipEquality, skipDescription
/// Method name without arguments names and parenthesis, i.e. `foo<T>`
/// Method name without arguments names and parentheses, i.e. `foo<T>`
public var shortName: String {
return name.range(of: "(").map({ String(name[..<$0.lowerBound]) }) ?? name
}

// sourcery: skipEquality, skipDescription
/// Method name without arguments names, parenthesis and generic types, i.e. `foo` (can be used to generate code for method call)
/// Method name without arguments names, parentheses and generic types, i.e. `foo` (can be used to generate code for method call)
public var callName: String {
return shortName.range(of: "<").map({ String(shortName[..<$0.lowerBound]) }) ?? shortName
}
Expand Down
4 changes: 2 additions & 2 deletions SourceryRuntime/Sources/macOS/AST/Method.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public final class Method: NSObject, SourceryModel, Annotated, Documented, Defin
public var selectorName: String

// sourcery: skipEquality, skipDescription
/// Method name without arguments names and parenthesis, i.e. `foo<T>`
/// Method name without arguments names and parentheses, i.e. `foo<T>`
public var shortName: String {
return name.range(of: "(").map({ String(name[..<$0.lowerBound]) }) ?? name
}

// sourcery: skipEquality, skipDescription
/// Method name without arguments names, parenthesis and generic types, i.e. `foo` (can be used to generate code for method call)
/// Method name without arguments names, parentheses and generic types, i.e. `foo` (can be used to generate code for method call)
public var callName: String {
return shortName.range(of: "<").map({ String(shortName[..<$0.lowerBound]) }) ?? shortName
}
Expand Down

0 comments on commit 0032a6b

Please sign in to comment.