MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / pat_ident

Function pat_ident

node-graph/node-macro/src/parsing.rs:969–977  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

967 use quote::{quote, quote_spanned};
968 use syn::parse_quote;
969 fn pat_ident(name: &str) -> PatIdent {
970 PatIdent {
971 attrs: Vec::new(),
972 by_ref: None,
973 mutability: None,
974 ident: Ident::new(name, Span::call_site()),
975 subpat: None,
976 }
977 }
978
979 fn assert_parsed_node_fn(parsed: &ParsedNodeFn, expected: &ParsedNodeFn) {
980 assert_eq!(parsed.fn_name, expected.fn_name);

Callers 7

test_basic_nodeFunction · 0.85
test_node_with_impl_nodeFunction · 0.85
test_async_nodeFunction · 0.85

Calls

no outgoing calls

Tested by 7

test_basic_nodeFunction · 0.68
test_node_with_impl_nodeFunction · 0.68
test_async_nodeFunction · 0.68