mirror of
https://github.com/nushell/nushell
synced 2025-01-06 02:09:10 +00:00
17 lines
283 B
Rust
17 lines
283 B
Rust
|
use crate::{Span, Type};
|
||
|
|
||
|
#[derive(Clone, Debug)]
|
||
|
pub struct Variable {
|
||
|
pub declaration_span: Span,
|
||
|
pub ty: Type,
|
||
|
}
|
||
|
|
||
|
impl Variable {
|
||
|
pub fn new(declaration_span: Span, ty: Type) -> Variable {
|
||
|
Self {
|
||
|
declaration_span,
|
||
|
ty,
|
||
|
}
|
||
|
}
|
||
|
}
|