parseFile method
Implementation
CompilationUnit? parseFile(String filePath, String content) {
try {
final result = parseString(content: content, path: filePath);
return result.unit;
} catch (e) {
context.logger.verboseLog('AST parsing failed for $filePath: $e');
return null;
}
}