square / Cleanse

Lightweight Swift Dependency Injection Framework
Other
1.78k stars 90 forks source link

Source Parsing & Visitor Step #139

Closed sebastianv1 closed 4 years ago

sebastianv1 commented 4 years ago

Create SwiftAstParser unique node types.

These unique node types provide helper implementations for common formats, such as the TypedSyntax node which provides a type.

Also adds a walkChildren method for those who want to skip the current parent and immediately parse its children.

Add visitor/parsing implementation to CleansecFramework (renamed from Cleansec)

This adds all the primary visitor implementations in order to parse Cleanse usages in source code. The primary visitor, FileVisitor will emit upon finalize the FileRepresentation agnostic model that will be passed on to succeeding pipeline steps.

Adds a test suite to cover all the fixtures generated, and aggregates all test schemes under the cleansec binary executable scheme.