parseDartFile function

CompilationUnit? parseDartFile(
  1. String path
)

Implementation

CompilationUnit? parseDartFile(String path) {
  try {
    return parseString(content: fileReadString(path)).unit;
  } catch (e) {
    return null;
  }
}