#![allow(unused_imports, unused_variables, clippy::inline_always)]
use std::cell::Cell;
use oxc_allocator::{Allocator, Dummy};
use crate::source_type::*;
impl<'a> Dummy<'a> for SourceType {
fn dummy(allocator: &'a Allocator) -> Self {
Self {
language: Dummy::dummy(allocator),
module_kind: Dummy::dummy(allocator),
variant: Dummy::dummy(allocator),
extension: Dummy::dummy(allocator),
}
}
}
impl<'a> Dummy<'a> for Language {
#[inline(always)]
fn dummy(allocator: &'a Allocator) -> Self {
Self::JavaScript
}
}
impl<'a> Dummy<'a> for ModuleKind {
#[inline(always)]
fn dummy(allocator: &'a Allocator) -> Self {
Self::Script
}
}
impl<'a> Dummy<'a> for LanguageVariant {
#[inline(always)]
fn dummy(allocator: &'a Allocator) -> Self {
Self::Standard
}
}
impl<'a> Dummy<'a> for FileExtension {
#[inline(always)]
fn dummy(allocator: &'a Allocator) -> Self {
Self::Js
}
}