parseFile method

CompilationUnit? parseFile(
  1. String filePath,
  2. String content
)

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;
  }
}