Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update "part of" directives to address linter errors and upgrade package dependencies #122

Merged
merged 9 commits into from
May 19, 2024
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:

- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1
with:
sdk: stable

- name: Prepare RabbitMQ configuration
run: |
Expand Down
2 changes: 1 addition & 1 deletion lib/src/authentication/amq_plain_authenticator.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.authentication;
part of "../authentication.dart";

class AmqPlainAuthenticator implements Authenticator {
final String userName;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/authentication/authenticator.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.authentication;
part of "../authentication.dart";

abstract class Authenticator {
/// Get the SASL type of this authenticator
Expand Down
2 changes: 1 addition & 1 deletion lib/src/authentication/plain_authenticator.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.authentication;
part of "../authentication.dart";

class PlainAuthenticator implements Authenticator {
final String userName;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/amqp_message.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../client.dart";

abstract class AmqpMessage {
/// Get the payload as a [Uint8List]
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/basicreturn_message.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../client.dart";

abstract class BasicReturnMessage {
/// Get the payload as a [Uint8List]
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/channel.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../client.dart";

abstract class Channel {
/// Close the channel, abort any pending operations and return a [Future<Channel>] to be completed
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/client.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../client.dart";

abstract class Client {
factory Client({ConnectionSettings? settings}) =>
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/connection_settings.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../client.dart";

class ConnectionSettings {
// The host to connect to
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/consumer.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../client.dart";

abstract class Consumer {
/// Get the consumer tag.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/exchange.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../client.dart";

abstract class Exchange {
/// Get the name of the exchange
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/impl/amqp_message_impl.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../../client.dart";

class _AmqpMessageImpl implements AmqpMessage {
final _ConsumerImpl consumer;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/impl/basic_return_message_impl.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../../client.dart";

class _BasicReturnMessageImpl implements BasicReturnMessage {
final DecodedMessage message;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/impl/channel_impl.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../../client.dart";

class _ChannelImpl implements Channel {
// The allocated channel id
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/impl/client_impl.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../../client.dart";

class _ClientImpl implements Client {
// Configuration options
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/impl/consumer_impl.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../../client.dart";

class _ConsumerImpl implements Consumer {
// https://github.com/dart-lang/linter/issues/2697
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/impl/exchange_impl.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../../client.dart";

class _ExchangeImpl implements Exchange {
final String _name;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/impl/publish_notification_impl.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../../client.dart";

class _PublishNotificationImpl implements PublishNotification {
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/impl/queue_impl.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../../client.dart";

class _QueueImpl implements Queue {
// https://github.com/dart-lang/linter/issues/2697
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/publish_notification.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../client.dart";

abstract class PublishNotification {
Object? get message;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client/queue.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.client;
part of "../client.dart";

abstract class Queue {
/// Get the queue name
Expand Down
2 changes: 1 addition & 1 deletion lib/src/enums/delivery_mode.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.enums;
part of "../enums.dart";

class DeliveryMode extends Enum<int> {
static const DeliveryMode TRANSIENT = DeliveryMode._(1);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/enums/enum.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.enums;
part of "../enums.dart";

/// An abstract class for modeling enums
abstract class Enum<T> {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/enums/error_type.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.enums;
part of "../enums.dart";

class ErrorType extends Enum<int> {
static const ErrorType SUCCESS = ErrorType._(200, false);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/enums/exchange_type.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.enums;
part of "../enums.dart";

class ExchangeType extends BaseExchange<String> {
static const ExchangeType FANOUT = ExchangeType._("fanout");
Expand Down
2 changes: 1 addition & 1 deletion lib/src/enums/field_type.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.enums;
part of "../enums.dart";

class FieldType extends Enum<int> {
static const FieldType BOOLEAN = FieldType._(116);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/enums/frame_type.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.enums;
part of "../enums.dart";

class FrameType extends Enum<int> {
static const FrameType METHOD = FrameType._(1);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/exceptions/channel_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.exceptions;
part of "../exceptions.dart";

class ChannelException implements Exception {
final String message;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/exceptions/connection_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.exceptions;
part of "../exceptions.dart";

class ConnectionException implements Exception {
final String message;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/exceptions/connection_failed_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.exceptions;
part of "../exceptions.dart";

class ConnectionFailedException implements Exception {
final String message;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/exceptions/exchange_not_found_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.exceptions;
part of "../exceptions.dart";

class ExchangeNotFoundException extends ChannelException {
ExchangeNotFoundException(String message, int channel, ErrorType errorType)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/exceptions/fatal_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.exceptions;
part of "../exceptions.dart";

class FatalException implements Exception {
final String message;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/exceptions/heartbeat_failed_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.exceptions;
part of "../exceptions.dart";

class HeartbeatFailedException implements Exception {
final String message;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/exceptions/queue_not_found_exception.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.exceptions;
part of "../exceptions.dart";

class QueueNotFoundException extends ChannelException {
QueueNotFoundException(String message, int channel, ErrorType errorType)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/logging/logger.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.logger;
part of "../logging.dart";

// Define hierarchical loggers
final Logger connectionLogger = Logger("dart_amqp.Connection");
2 changes: 1 addition & 1 deletion lib/src/protocol/frame/decoded_message.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

abstract class DecodedMessage {
int get channel;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/frame/impl/decoded_message_impl.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../../protocol.dart";

class DecodedMessageImpl implements DecodedMessage {
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/frame/impl/heartbeat_frame_impl.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../../protocol.dart";

class HeartbeatFrameImpl implements DecodedMessage {
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/frame/raw_frame.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

class RawFrame {
final FrameHeader header;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/headers/content_header.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

class ContentHeader implements Header {
int classId = 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/headers/frame_header.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

class FrameHeader implements Header {
static const int LENGTH_IN_BYTES = 7;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/headers/header.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

abstract class Header {
void serialize(TypeEncoder encoder);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/headers/protocol_header.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

class ProtocolHeader implements Header {
static const int LENGTH_IN_BYTES = 8;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/io/amqp_message_decoder.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

class AmqpMessageDecoder {
Map<int, DecodedMessageImpl> incompleteMessages = <int, DecodedMessageImpl>{};
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/io/frame_writer.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

final Uint8List frameTerminatorSequence =
Uint8List.fromList([RawFrameParser.FRAME_TERMINATOR]);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/io/raw_frame_parser.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

class RawFrameParser {
static const int FRAME_TERMINATOR = 0xCE;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/io/tuning_settings.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

class TuningSettings {
// The maximum number of channels to allow. A value of 0 indicates that there
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/messages/bindings/basic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// ignore_for_file: empty_constructor_bodies

part of dart_amqp.protocol;
part of "../../../protocol.dart";

class BasicQos implements Message {
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/messages/bindings/channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// ignore_for_file: empty_constructor_bodies

part of dart_amqp.protocol;
part of "../../../protocol.dart";

class ChannelOpen implements Message {
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/messages/bindings/confirm.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// ignore_for_file: empty_constructor_bodies

part of dart_amqp.protocol;
part of "../../../protocol.dart";

class ConfirmSelect implements Message {
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/messages/bindings/connection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// ignore_for_file: empty_constructor_bodies

part of dart_amqp.protocol;
part of "../../../protocol.dart";

class ConnectionStart implements Message {
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/messages/bindings/exchange.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// ignore_for_file: empty_constructor_bodies

part of dart_amqp.protocol;
part of "../../../protocol.dart";

class ExchangeDeclare implements Message {
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/messages/bindings/queue.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// ignore_for_file: empty_constructor_bodies

part of dart_amqp.protocol;
part of "../../../protocol.dart";

class QueueDeclare implements Message {
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/messages/bindings/tx.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// ignore_for_file: empty_constructor_bodies

part of dart_amqp.protocol;
part of "../../../protocol.dart";

class TxSelect implements Message {
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/messages/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// Do not modify

part of dart_amqp.protocol;
part of "../../protocol.dart";

abstract class Message {
int get msgClassId;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/messages/message_properties.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

class MessageProperties {
String? contentType;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/stream/chunked_input_reader.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

class ChunkedInputReader {
final _bufferedChunks = ListQueue<List<int>>();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/stream/chunked_output_writer.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

class ChunkedOutputWriter {
final ListQueue<Uint8List> _bufferedChunks = ListQueue<Uint8List>();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/stream/type_decoder.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

class TypeDecoder {
int _offset = 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/stream/type_encoder.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of dart_amqp.protocol;
part of "../../protocol.dart";

class TypeEncoder {
late ChunkedOutputWriter _writer;
Expand Down
Loading