MoorIndex.fromMoor constructor

MoorIndex.fromMoor(
  1. CreateIndexStatement stmt,
  2. FoundFile file
)

Implementation

factory MoorIndex.fromMoor(CreateIndexStatement stmt, FoundFile file) {
  return MoorIndex(
    stmt.indexName,
    MoorIndexDeclaration.fromNodeAndFile(stmt, file),
    stmt.span!.text,
  );
}