pub fn into_report(self) -> WarningReport {
        match self {
            Self::DuplicateValueExport {
                previous_export,
                duplicate_export,
            } => WarningReport::DuplicateValueExport {
                previous_export: span_to_source_span(previous_export),
                duplicate_export: span_to_source_span(duplicate_export),
            },
            Self::DuplicateTypeExport {
                previous_export,
                duplicate_export,
            } => WarningReport::DuplicateTypeExport {
                previous_export: span_to_source_span(previous_export),
                duplicate_export: span_to_source_span(duplicate_export),
            },
            Self::DuplicateValueImport {
                previous_import,
                duplicate_import,
            } => WarningReport::DuplicateValueImport {
                previous_import: span_to_source_span(previous_import),
                duplicate_import: span_to_source_span(duplicate_import),
            },
            Self::DuplicateTypeImport {
                previous_import,
                duplicate_import,
            } => WarningReport::DuplicateTypeImport {
                previous_import: span_to_source_span(previous_import),
                duplicate_import: span_to_source_span(duplicate_import),
            },
            Self::UnusedFunctionBinder { span } => WarningReport::UnusedFunctionBinder {
                location: span_to_source_span(span),
            },
            Self::UnusedPatternBinder { span } => WarningReport::UnusedPatternBinder {
                location: span_to_source_span(span),
            },
            Self::UnusedEffectBinder { span } => WarningReport::UnusedEffectBinder {
                location: span_to_source_span(span),
            },
            Self::UnusedValueDeclaration { span } => WarningReport::UnusedValueDeclaration {
                location: span_to_source_span(span),
            },
            Self::UnusedForeignValue { span } => WarningReport::UnusedForeignValue {
                location: span_to_source_span(span),
            },
            Self::UnusedTypeDeclaration { span } => WarningReport::UnusedTypeDeclaration {
                location: span_to_source_span(span),
            },
            Self::UnusedTypeConstructors { span } => WarningReport::UnusedTypeConstructors {
                location: span_to_source_span(span),
            },
            Self::UnusedImport { span } => WarningReport::UnusedImport {
                location: span_to_source_span(span),
            },
            Self::RedundantMatchPattern { span } => WarningReport::RedundantMatchPattern {
                location: span_to_source_span(span),
            },
        }
    }
/// Convert a warning to a pretty report.
Convert a warning to a pretty report.
Convert a warning to a pretty report .
pub fn into_report(self) -> WarningReport {
        match self {
            Self::DuplicateValueExport {
                previous_export,
                duplicate_export,
            } => WarningReport::DuplicateValueExport {
                previous_export: span_to_source_span(previous_export),
                duplicate_export: span_to_source_span(duplicate_export),
            },
            Self::DuplicateTypeExport {
                previous_export,
                duplicate_export,
            } => WarningReport::DuplicateTypeExport {
                previous_export: span_to_source_span(previous_export),
                duplicate_export: span_to_source_span(duplicate_export),
            },
            Self::DuplicateValueImport {
                previous_import,
                duplicate_import,
            } => WarningReport::DuplicateValueImport {
                previous_import: span_to_source_span(previous_import),
                duplicate_import: span_to_source_span(duplicate_import),
            },
            Self::DuplicateTypeImport {
                previous_import,
                duplicate_import,
            } => WarningReport::DuplicateTypeImport {
                previous_import: span_to_source_span(previous_import),
                duplicate_import: span_to_source_span(duplicate_import),
            },
            Self::UnusedFunctionBinder { span } => WarningReport::UnusedFunctionBinder {
                location: span_to_source_span(span),
            },
            Self::UnusedPatternBinder { span } => WarningReport::UnusedPatternBinder {
                location: span_to_source_span(span),
            },
            Self::UnusedEffectBinder { span } => WarningReport::UnusedEffectBinder {
                location: span_to_source_span(span),
            },
            Self::UnusedValueDeclaration { span } => WarningReport::UnusedValueDeclaration {
                location: span_to_source_span(span),
            },
            Self::UnusedForeignValue { span } => WarningReport::UnusedForeignValue {
                location: span_to_source_span(span),
            },
            Self::UnusedTypeDeclaration { span } => WarningReport::UnusedTypeDeclaration {
                location: span_to_source_span(span),
            },
            Self::UnusedTypeConstructors { span } => WarningReport::UnusedTypeConstructors {
                location: span_to_source_span(span),
            },
            Self::UnusedImport { span } => WarningReport::UnusedImport {
                location: span_to_source_span(span),
            },
            Self::RedundantMatchPattern { span } => WarningReport::RedundantMatchPattern {
                location: span_to_source_span(span),
            },
        }
    }
pub fn into_report ( self ) -> WarningReport { match self { Self :: DuplicateValueExport { previous_export , duplicate_export , } => WarningReport :: DuplicateValueExport { previous_export : span_to_source_span ( previous_export ) , duplicate_export : span_to_source_span ( duplicate_export ) , } , Self :: DuplicateTypeExport { previous_export , duplicate_export , } => WarningReport :: DuplicateTypeExport { previous_export : span_to_source_span ( previous_export ) , duplicate_export : span_to_source_span ( duplicate_export ) , } , Self :: DuplicateValueImport { previous_import , duplicate_import , } => WarningReport :: DuplicateValueImport { previous_import : span_to_source_span ( previous_import ) , duplicate_import : span_to_source_span ( duplicate_import ) , } , Self :: DuplicateTypeImport { previous_import , duplicate_import , } => WarningReport :: DuplicateTypeImport { previous_import : span_to_source_span ( previous_import ) , duplicate_import : span_to_source_span ( duplicate_import ) , } , Self :: UnusedFunctionBinder { span } => WarningReport :: UnusedFunctionBinder { location : span_to_source_span ( span ) , } , Self :: UnusedPatternBinder { span } => WarningReport :: UnusedPatternBinder { location : span_to_source_span ( span ) , } , Self :: UnusedEffectBinder { span } => WarningReport :: UnusedEffectBinder { location : span_to_source_span ( span ) , } , Self :: UnusedValueDeclaration { span } => WarningReport :: UnusedValueDeclaration { location : span_to_source_span ( span ) , } , Self :: UnusedForeignValue { span } => WarningReport :: UnusedForeignValue { location : span_to_source_span ( span ) , } , Self :: UnusedTypeDeclaration { span } => WarningReport :: UnusedTypeDeclaration { location : span_to_source_span ( span ) , } , Self :: UnusedTypeConstructors { span } => WarningReport :: UnusedTypeConstructors { location : span_to_source_span ( span ) , } , Self :: UnusedImport { span } => WarningReport :: UnusedImport { location : span_to_source_span ( span ) , } , Self :: RedundantMatchPattern { span } => WarningReport :: RedundantMatchPattern { location : span_to_source_span ( span ) , } , } }
Convert a warning to a pretty report.
Convert a warning to a pretty report .
self
self