bundles/org.eclipse.orion.client.webtools/web/webtools/htmlContentAssist.js
function(node, params) {
			if(node) {
				var offset = params.offset;
				if(node.type === 'tag') {
					if (node.openrange){
						if (offset >= node.openrange[0] && offset <= node.openrange[1]){
							return true;
						}
					} else if (offset >= node.range[0] && offset <= node.range[1]){
						return true;
					}
 				}
			}
			return false;
		}
function(node, params) {
			if(node) {
				var offset = params.offset;
				if(node.type === 'tag') {
					if (node.openrange){
						if (offset >= node.openrange[0] && offset <= node.openrange[1]){
							return true;
						}
					} else if (offset >= node.range[0] && offset <= node.range[1]){
						return true;
					}
 				}
			}
			return false;
		}
function ( node , params ) { if ( node ) { var offset = params . offset ; if ( node . type === 'tag' ) { if ( node . openrange ) { if ( offset >= node . openrange [ 0 ] && offset <= node . openrange [ 1 ] ) { return true ; } } else if ( offset >= node . range [ 0 ] && offset <= node . range [ 1 ] ) { return true ; } } } return false ; }
Computes if we are trying to complete a tag
@param {Object} node The AST node to check with the offset
@param {Object} params The parameters
@returns {Boolean} True if we are completing a tag, false otherwise
@since 10.0
Computes if we are trying to complete a tag