mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 21:18:12 +08:00
Reach a compiling workspace on the merged tree
This commit is contained in:
@@ -901,10 +901,6 @@ impl TypingContext {
|
||||
self.promotions.get(&node_id)
|
||||
}
|
||||
|
||||
/// Looks up the sole constructor registered under an adapter identifier, such as an Item -> List promotion adapter.
|
||||
pub fn adapter_constructor(&self, identifier: &ProtoNodeIdentifier) -> Option<NodeConstructor> {
|
||||
self.lookup.get(identifier).and_then(|implementations| implementations.values().next().copied())
|
||||
}
|
||||
|
||||
/// Returns the node constructor for a given node id.
|
||||
pub fn constructor(&self, node_id: NodeId) -> Option<NodeConstructor> {
|
||||
|
||||
Reference in New Issue
Block a user