/** * Test Body Parser * * Extracts semantic information from test method bodies: * - Type instantiations (what classes are created) * - Method calls (what methods are invoked) * - Property accesses (what properties are read) * * Supports both Swift and Objective-C syntax. * * This is Tier 2 of the semantic test coverage system. */ export interface TypeInstantiation { typeName: string; variableName?: string; line?: number; } export interface MethodCall { receiver: string; methodName: string; line?: number; } export interface PropertyAccess { receiver: string; propertyName: string; line?: number; } export interface TestBodyAnalysis { testMethod: string; instantiations: TypeInstantiation[]; methodCalls: MethodCall[]; propertyAccesses: PropertyAccess[]; } export type Language = 'swift' | 'objc'; /** * Extract type instantiations from test body */ export declare function extractInstantiations(content: string, language: Language): TypeInstantiation[]; /** * Extract method calls from test body */ export declare function extractMethodCalls(content: string, language: Language): MethodCall[]; /** * Extract property accesses from test body */ export declare function extractPropertyAccesses(content: string, language: Language): PropertyAccess[]; /** * Parse a complete test method body and extract all semantic information */ export declare function parseTestBody(content: string, testMethodName: string, language: Language): TestBodyAnalysis; /** * Get all unique type names that are used (instantiated, called, or accessed) in a test body */ export declare function getUsedTypes(analysis: TestBodyAnalysis): Set; //# sourceMappingURL=test-body-parser.d.ts.map