Commit Graph

14 Commits

Author SHA1 Message Date
James Paolantonio
a30ed9ec39 [Const Extract] Fix nil default argument being extracted as nil raw literal (#82339)
This was missed in https://github.com/swiftlang/swift/pull/78511.

Resolves rdar://153563086

Co-authored-by: James Paolantonio <j_paolantonio@apple.com>
2025-07-08 09:16:19 -04:00
Venkatesh Sriram
0d9e62e143 Merge pull request #76917 from venkatesh5789/external-conformance-info
[Compile Time Constant Extraction] Add information about where a particular conformance has been defined
2024-10-17 10:19:07 -07:00
Venkatesh Sriram
9ca55fdf89 [Compile Time Constant Extraction] Add information about where a particular conformance has been defined 2024-10-15 15:46:21 -07:00
James Paolantonio
5e1de491b6 [Const extract] Extract static function calls (#76251)
Co-authored-by: James Paolantonio <j_paolantonio@apple.com>
2024-10-10 09:59:20 -04:00
Venkatesh Sriram
9820865a80 [Compile Time Constant Extraction] Extract Interpolated String Literals 2024-06-25 11:11:20 -07:00
Slava Pestov
37dbd05354 ConstExtract: Update for noncopyable generics (sort of) 2024-03-01 11:05:54 -05:00
Kavon Farvardin
f296d8e158 NCGenerics: mass XFAIL tests
It's easier to get a handle on regressions while working through
failures if the tests that are known to not pass are XFAIL'd for
NoncopyableGenerics.
2024-02-20 18:26:05 -05:00
Artem Chikin
0ea41efded [Compile Time Constant Extraction] Deprecated extraction of property mangled
names. It can often be more complex than the code can currently handle (e.g.
properties whose types include archetypes), and we
do not have a good motivating use-case to extract them.

Resolves rdar://113039215
2023-08-01 15:52:52 -07:00
Artem Chikin
3f0c0f0553 [Compile Time Constant Extraction] Add extraction of all conformances and type aliases of applicable nominal types
This change adds to the extracted type metadata the following fields:
- Conformances: this is a list of all protocols that the given nominal type conforms to
- associated type aliases: this is a list of all associated types across all conformances that the given nominal type substitutes with concrete types. For a given associated type, we gather:
  - Associated type name
  - Substituted type's fully-qualified name
  - Substituted type's mangled name
  - If the substituted type is opaque:
    - List of conformance requirements of this opaque type
    - List of same-type requirements of this opaque type
2023-06-22 07:13:24 -07:00
James Paolantonio
bb2a2e8efe [Compile Time Constant Extraction] Look through InjectIntoOptionalExpr (#64416) 2023-03-16 15:42:22 -04:00
James Paolantonio
5a1207569e [Compile Time Constant Extraction] Extract line numbers (#62870) 2023-01-09 16:31:41 -05:00
James Paolantonio
4a2908041f [Compile Time Constant Extraction] Update string literal output formatting (#62836) 2023-01-06 07:04:51 -05:00
James Paolantonio
b6d098618d [Compile Time Constant Extraction] Add extraction of property wrappers (#62555) 2022-12-14 09:28:09 -05:00
Quinn Taylor
a617c34835 [Compile Time Constant Extraction] Split fields.swift test file into 3 files with clear scoping and naming. 2022-12-12 12:00:36 -05:00