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:
jeparlefrancais
2020-03-29 19:03:15 -04:00
committed by GitHub
parent 571ef3060a
commit 6a1fffd1ce
12 changed files with 134 additions and 11 deletions

View File

@@ -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,
),
}
}