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

Function resolve1

pattern/web/pdf/pdftypes.py:53–61  ·  view source on GitHub ↗

Resolves an object. If this is an array or dictionary, it may still contains some indirect objects inside.

(x)

Source from the content-addressed store, hash-verified

51
52# resolve
53def resolve1(x):
54 """Resolves an object.
55
56 If this is an array or dictionary, it may still contains
57 some indirect objects inside.
58 """
59 while isinstance(x, PDFObjRef):
60 x = x.resolve()
61 return x
62
63def resolve_all(x):
64 """Recursively resolves the given object and all the internals.

Callers 12

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
get_fontMethod · 0.90
init_resourcesMethod · 0.90
int_valueFunction · 0.85
float_valueFunction · 0.85
num_valueFunction · 0.85
str_valueFunction · 0.85
list_valueFunction · 0.85
dict_valueFunction · 0.85
stream_valueFunction · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…