This script is intended to be used as a proxy for compiling swift files and emitting their typed AST via -dump-ast mode.
Using the script in Xcode involves setting the SWIFT_EXEC build setting to the path of this script. Its output file will be based on the DAST_FILE preprocessor macro.
Create core Visitor/Parsing models.
Module, Component, StandardProvider, DanglingProvider, ReferenceProvider are all the core components emitted from the parsing step to be used in future pipeline steps.
Since parsing will operate over the dump-ast output, this sets up a fixture generation step based on the swift files provided that show Cleanse usages. We will write future tests against these generated fixtures. The Cleansec-Generate-Fixtures target can be used to regenerate these fixtures across Swift (or Xcode) versions.
Add swiftc-ast wrapper script.
This script is intended to be used as a proxy for compiling swift files and emitting their typed AST via
-dump-ast
mode.Using the script in Xcode involves setting the
SWIFT_EXEC
build setting to the path of this script. Its output file will be based on theDAST_FILE
preprocessor macro.Create core Visitor/Parsing models.
Module
,Component
,StandardProvider
,DanglingProvider
,ReferenceProvider
are all the core components emitted from the parsing step to be used in future pipeline steps.dump-ast
output, this sets up a fixture generation step based on the swift files provided that show Cleanse usages. We will write future tests against these generated fixtures. TheCleansec-Generate-Fixtures
target can be used to regenerate these fixtures across Swift (or Xcode) versions.