MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / is_resolved

Method is_resolved

src/packagedcode/bashparse.py:147–155  ·  view source on GitHub ↗

Return True if this variable is fully resolved and does not need further shell expansion.

(self)

Source from the content-addressed store, hash-verified

145 is_array = attr.ib(default=False, repr=False)
146
147 def is_resolved(self):
148 """
149 Return True if this variable is fully resolved and does not need further
150 shell expansion.
151 """
152 if self.is_array:
153 for item in self.value:
154 return not any(c in item for c in '${}')
155 return not any(c in self.value for c in '${}')
156
157 @classmethod
158 def from_node(cls, node):

Callers 2

parse_apkbuild_textFunction · 0.80
resolveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected