mirror of
https://github.com/colbymchenry/codegraph.git
synced 2026-11-04 08:45:36 +08:00
A chained Swift call accepted any same-named member unless its name was a standard-library one: vapor's `JSONDecoder().decode(...)` and even its own `URLQueryDecoder().decode(...)` went to `ClientRequest._URLQueryContainer .decode`, IceCubes' `JSONEncoder().encode(self)` to a filter's `encode`, realm's `Realm().create(...)` to a test object's `create`. When the link before the call is a constructor - `TypeName(...)` with flat arguments - the member must belong to that type or a supertype / protocol the project gives it; an outside type (JSONDecoder) keeps only the project's extensions of it. A capitalized C function (`RLMObjectBaseObjectSchema(obj)!`) constructs nothing and is left alone. vapor -63 +62 (`URLQueryDecoder::decode`, `URLEncodedFormParser::parse`), IceCubesApp -23 +1, realm-swift -19 +19 (`Realm::create`), Alamofire -1; Kingfisher unchanged. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>