This is a sample Swift project for testing the CodeGraphContext Swift parser.
- Main class with a
run()method - Calculator class with basic arithmetic operations
- Demonstrates class instantiation and method calls
- Greeter protocol defining a greeting interface
- User struct conforming to the Greeter protocol
- Extension on User struct adding additional functionality
- Demonstrates protocols, structs, and extensions
- Shape protocol defining area and perimeter methods
- Circle class implementing Shape
- Rectangle struct implementing Shape
- Triangle class implementing Shape
- Demonstrates protocol conformance with multiple types
- VehicleType enum with different vehicle types
- Result enum with associated values (generic)
- Vehicle base class
- Car class inheriting from Vehicle
- Demonstrates enums, inheritance, and method overriding
- Stack generic class implementing a stack data structure
- Generic
swapfunction - Container protocol with associated type
- IntCollection struct conforming to Container
- Demonstrates Swift generics and protocols with associated types
- ✅ Classes and structs
- ✅ Protocols and protocol conformance
- ✅ Enums (simple and with associated values)
- ✅ Inheritance
- ✅ Extensions
- ✅ Generics
- ✅ Functions and methods
- ✅ Initializers
- ✅ Properties
- ✅ Method calls
- ✅ Imports