mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-22 21:55:15 +00:00
Infer class name (#210)
* infer service names * Update project code and add support for StarterPlayer * Store parent_class in InstigatingSource * Update snapshots Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
This commit is contained in:
@@ -163,6 +163,7 @@ pub enum InstigatingSource {
|
||||
#[serde(serialize_with = "path_serializer::serialize_absolute")] PathBuf,
|
||||
String,
|
||||
ProjectNode,
|
||||
Option<String>,
|
||||
),
|
||||
}
|
||||
|
||||
@@ -170,12 +171,13 @@ impl fmt::Debug for InstigatingSource {
|
||||
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
InstigatingSource::Path(path) => write!(formatter, "Path({})", path.display()),
|
||||
InstigatingSource::ProjectNode(path, name, node) => write!(
|
||||
InstigatingSource::ProjectNode(path, name, node, parent_class) => write!(
|
||||
formatter,
|
||||
"ProjectNode({}: {:?}) from path {}",
|
||||
"ProjectNode({}: {:?}) from path {} and parent class {:?}",
|
||||
name,
|
||||
node,
|
||||
path.display()
|
||||
path.display(),
|
||||
parent_class,
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user