FileContext constructor

FileContext(
  1. String path,
  2. AnalysisContextCollection _analysisContextCollection, {
  3. String? root,
})

Implementation

FileContext(this.path, this._analysisContextCollection, {String? root})
    : root = root ?? p.current,
      relativePath = p.relative(path, from: root) {
  if (!p.isAbsolute(path)) {
    throw ArgumentError.value(path, 'path', 'must be absolute.');
  }
}