MCPcopy Index your code
hub / github.com/clips/pattern / literal_name

Function literal_name

pattern/web/pdf/psparser.py:109–115  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

107
108
109def literal_name(x):
110 if not isinstance(x, PSLiteral):
111 if STRICT:
112 raise PSTypeError('Literal required: %r' % x)
113 else:
114 return str(x)
115 return x.name
116
117def keyword_name(x):
118 if not isinstance(x, PSKeyword):

Callers 15

initializeMethod · 0.90
do_keywordMethod · 0.90
do_keywordMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
get_fontMethod · 0.90
do_keywordMethod · 0.90
get_colorspaceMethod · 0.90
do_CSMethod · 0.90
do_csMethod · 0.90

Calls 2

PSTypeErrorClass · 0.85
strFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…