mago_reflection/function_like/
return.rs1use serde::Deserialize;
2use serde::Serialize;
3
4use mago_source::HasSource;
5use mago_source::SourceIdentifier;
6use mago_span::HasSpan;
7use mago_span::Span;
8
9use crate::r#type::TypeReflection;
10
11#[derive(Debug, Clone, Eq, PartialEq, Hash, Serialize, Deserialize, PartialOrd, Ord)]
17pub struct FunctionLikeReturnTypeReflection {
18 pub type_reflection: TypeReflection,
20
21 pub span: Span,
23}
24
25impl HasSpan for FunctionLikeReturnTypeReflection {
26 fn span(&self) -> Span {
28 self.span
29 }
30}
31
32impl HasSource for FunctionLikeReturnTypeReflection {
33 fn source(&self) -> SourceIdentifier {
35 self.span.source()
36 }
37}