mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 12:51:57 +00:00
14 lines
386 B
Rust
14 lines
386 B
Rust
use oxc_diagnostics::{
|
|
miette::{self, Diagnostic},
|
|
thiserror::{self, Error},
|
|
};
|
|
use oxc_span::{Atom, Span};
|
|
|
|
#[derive(Debug, Error, Diagnostic)]
|
|
#[error("Identifier `{0}` has already been declared")]
|
|
#[diagnostic()]
|
|
pub struct Redeclaration(
|
|
pub Atom,
|
|
#[label("`{0}` has already been declared here")] pub Span,
|
|
#[label("It can not be redeclared here")] pub Span,
|
|
);
|