Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-2502] Driver support for printing out a module's interface #45107

Open
jtbandes opened this issue Aug 27, 2016 · 5 comments
Open

[SR-2502] Driver support for printing out a module's interface #45107

jtbandes opened this issue Aug 27, 2016 · 5 comments
Labels
compiler The Swift compiler in itself improvement legacy driver Area → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver project

Comments

@jtbandes
Copy link
Collaborator

Previous ID SR-2502
Radar None
Original Reporter @jtbandes
Type Improvement
Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Improvement, Driver
Assignee None
Priority Medium

md5: f81614ceb2ed7c4e08b37ad3556163f8

relates to:

  • SR-1303 [SwiftPM] Support for showing "Swift generated interface"

Issue Description:

Currently, swift-ide-test or the -deprecated-integrated-repl can be used to print out a Swift module's interface (https://gist.github.com/natecook1000/ce6631a23649dc952d8e).

It would be nice if this functionality were available to anyone, just by running swift with a special flag such as -print-module-interface.

@belkadan
Copy link
Contributor

Removing the StarterBug tag because I'm not convinced this is the right interface for this functionality. The simple version is making swift-ide-test's interface better at it. The full REPL can also print both modules and decls with :type lookup.

@jtbandes
Copy link
Collaborator Author

That's cool, I didn't know about :type lookup.

@modocache
Copy link
Mannequin

modocache mannequin commented Nov 18, 2016

Is this still an idea either of you are interested in pursuing, or is :type lookup sufficient?

@jtbandes
Copy link
Collaborator Author

From a usability (and scriptability) perspective, I still think it would be nice for this to be a separate driver option and not something that requires the REPL. However, I'm not actively pursuing it, and if others disagree I'm not strongly opposed to closing the issue. But I suspect it would be a good StarterBug if someone were interested.

@swift-ci
Copy link
Collaborator

Comment by Dave Yost (JIRA)

I think a swift interface source file should be created whenever you build a system-module package. The disk space required is not such a big thing compared to the usability benefit. There could be a flag on swift build to suppress the building of such nonessentials.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself improvement legacy driver Area → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver project
Projects
None yet
Development

No branches or pull requests

3 participants