Move source path function to Reflect trait

This commit is contained in:
Kirill Khalitov
2024-02-06 19:49:01 +01:00
parent 90e018fd4f
commit 3fa5b3bab6
16 changed files with 60 additions and 78 deletions
@@ -42,6 +42,10 @@ macro_rules! define_two_args_node {
}
impl<T:EntityId> Reflect for $name<T> {
fn source_path() -> &'static str {
file!()
}
fn type_name(&self) -> &'static str {
type_name::<Self>()
}
@@ -184,6 +188,10 @@ impl<T: EntityId> Visit for NotNode<T> {
}
impl<T: EntityId> Reflect for NotNode<T> {
fn source_path() -> &'static str {
file!()
}
fn type_name(&self) -> &'static str {
type_name::<Self>()
}