Position.fromProto constructor

Position.fromProto(
  1. Position position
)

Implementation

factory Position.fromProto(pb.Position position) {
  return Position(
    filename: position.hasFilename() ? Uri.parse(position.filename) : null,
    offset: position.offset,
    line: position.line,
    column: position.column,
  );
}