Skip to content

Name the parameter the memoizedExpression initializers actually take - #1213

Open
hxperl wants to merge 1 commit into
Quick:mainfrom
hxperl:docs/memoized-expression-param
Open

hxperl wants to merge 1 commit into
Quick:mainfrom
hxperl:docs/memoized-expression-param

Conversation

@hxperl

@hxperl hxperl commented Sep 15, 2026

Copy link
Copy Markdown

Expression.init(memoizedExpression:location:withoutCaching:isClosure:) documents its first parameter as expression. There is no expression parameter on that initializer, so DocC binds nothing and the description is dropped.

/// - Parameter expression: The closure that produces a given value.
public init(memoizedExpression: @escaping (Bool) throws -> Value?, location: SourceLocation, ...)

It looks copied from the init(expression:...) directly above. Renamed the callout in Expression.swift and in the identical line in AsyncExpression.swift.

swift test: 473 tests, 0 failures, on macOS arm64 / Swift 6.2.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GuW8Eie2iuc8mqnqZaCLWR

The callout said 'expression', which is the name on the initializer above,
so DocC bound nothing and dropped the description.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GuW8Eie2iuc8mqnqZaCLWR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant