MCPcopy
hub / github.com/lutzroeder/netron / identifier

Method identifier

source/python.js:22361–22370  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

22359 }
22360
22361 identifier(expr) {
22362 const ast = this.ast;
22363 if (expr instanceof ast.Name) {
22364 return expr.id;
22365 }
22366 if (expr instanceof ast.Attribute) {
22367 return `${this.identifier(expr.value)}.${expr.attr}`;
22368 }
22369 return null;
22370 }
22371
22372 target(expr, context) {
22373 const ast = this.ast;

Callers 5

importClassMethod · 0.45
importNamedTupleMethod · 0.45
insertRefinementsMethod · 0.45
callMethod · 0.45
statementMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected