Beispiel #1
0
	def verifyIdentifiers(self, datafields, functions, containingFunction):
		CodeItemBase.verifyIdentifiers(self, datafields, functions, containingFunction)

		if self.target not in containingFunction.argdict and self.target not in containingFunction.localdict and self.target not in datafields:
			qualName = '%s.%s' % (self.containingModule, self.target)
			if qualName in datafields:
				self.target = qualName
			else:
				self.error("Data field '%s' not found" % self.target)
Beispiel #2
0
	def verifyIdentifiers(self, datafields, functions, containingFunction):
		CodeItemBase.verifyIdentifiers(self, datafields, functions, containingFunction)

		if self.target not in containingFunction.identifiers:
			qualName = '%s.%s' % (self.containingModule, self.target)
			if qualName in datafields:
				self.target = qualName
			else:
				self.error("Data field '%s' not found" % self.target)

		containingFunction.identifiers[self.target].assigned = True
Beispiel #3
0
	def verifyIdentifiers(self, datafields, functions, containingFunction):
		CodeItemBase.verifyIdentifiers(self, datafields, functions, containingFunction)

		for statement in self.statements:
			statement.verifyIdentifiers(datafields, functions, containingFunction)