Lines Matching defs:node
96 def get_file_from_layout(node):
98 if type(node) is dict and "file" in node.keys():
99 return node["file"]
100 return node
102 def get_offset_from_layout(node):
104 if type(node) is dict and "offset" in node.keys():
105 return int(node["offset"], 0)
108 def get_image_offset(node):
110 return get_offset_from_layout(node["image"])
112 def get_pm_offset(node):
114 return get_offset_from_layout(node["pm"])