def ClearSemanticAnalysisCache(self, script):
		global cacheLock
		global sem
		with cacheLock:
			if sem:
				if sem.cache.get(script, None):
					del sem.cache[script]
				children = []
				for name, obj in sem.cache.items():
					if script in obj.extends:
						children.append(name)
				for child in children:
					del sem.cache[child]
dataset/ETHPy150Open Kapiainen/SublimePapyrus/Source/Modules/Skyrim/Plugin.py/EventListener.ClearSemanticAnalysisCache/original