def get_inline_documentation(view, position):
	if not get_setting(view, "fw1_enabled"):
		return None

	view_extends_fw1 = extends_fw1(view)
	view_file_type = get_file_type(view)

	# settings
	context = []
	word_region = view.word(position)

	if view_extends_fw1 and view.match_selector(position, "meta.property"):
		context = utils.get_dot_context(view, word_region.begin() - 1)

	if view_extends_fw1 and view.match_selector(position, "meta.class.body.cfml meta.struct-literal.cfml"):
		context = utils.get_struct_context(view, position)

	if len(context) > 0:
		key = ".".join([symbol.name for symbol in reversed(context)])
		if view.match_selector(position, "meta.property,meta.struct-literal.key,variable.other"):
			key += "." + view.substr(word_region).lower()
		if key in fw1["settings_docs"]:
			return Documentation(get_documentation(key, fw1["settings_docs"][key]), None, 2)
		parent_key = ".".join(key.split(".")[:-1])
		if parent_key in fw1["settings_docs"]:
			return Documentation(get_documentation(parent_key, fw1["settings_docs"][parent_key]), None, 2)

	# methods
	if view_extends_fw1 and view.match_selector(position, "meta.function.declaration.cfml"):
		function_name, function_name_region, function_region = utils.get_function(view, position)
		if function_name in fw1["methods_docs"]:
			return Documentation(get_documentation(function_name, fw1["methods_docs"][function_name]), None, 2)

	if view_extends_fw1 or view_file_type in ["view","layout"]:
		if view.match_selector(position, "meta.function-call"):
			function_name, function_name_region, function_args_region = utils.get_function_call(view, position)
			if function_name in fw1["methods_docs"]:
				return Documentation(get_documentation(function_name, fw1["methods_docs"][function_name]), None, 2)

	if view_file_type == "controller" and view.match_selector(position, "meta.function-call.method"):
			function_name, function_name_region, function_args_region = utils.get_function_call(view, position)
			if view.substr(1 - function_name_region.begin()) == ".":
				dot_context = utils.get_dot_context(view, function_name_region.begin() - 1)
				if dot_context[-1].name in ["fw","framework"] and function_name in fw1["methods_docs"]:
					return Documentation(get_documentation(function_name, fw1["methods_docs"][function_name]), None, 2)

	return None
dataset/ETHPy150Open jcberquist/sublimetext-cfml/src/fw1/fw1.py/get_inline_documentation/swapped operands of `-`