function referenceContainsTypeQuery(node) {
	switch (node.type) {
		case "TSTypeQuery":
			return true;

		case "TSQualifiedName":
		case "Identifier":
			return referenceContainsTypeQuery(node.parent);

		default:
			// if we find a different node, there's no chance that we're in a TSTypeQuery
			return false;
	}
}
check whether the reference contains a type query.
@param {ASTNode} node Identifier node to check.
@returns {boolean} true if reference contains type query.