Lines Matching refs:offset

1553     FullTextDocument.prototype.positionAt = function (offset) {  argument
1554 offset = Math.max(Math.min(offset, this._content.length), 0);
1558 return Position.create(0, offset);
1562 if (lineOffsets[mid] > offset) {
1572 return Position.create(line, offset - lineOffsets[line]);
24823 function getNodeAtOffset(node, offset) { argument
24825 if (!node || offset < node.offset || offset > node.end) {
24830 if (node.offset === -1 && node.length === -1) {
24833 if (node.offset <= offset && node.end >= offset) {
24846 function getNodePath(node, offset) { argument
24847 var candidate = getNodeAtOffset(node, offset);
24864 function Node(offset, len, nodeType) { argument
24865 if (offset === void 0) { offset = -1; }
24868 this.offset = offset;
24875 get: function () { return this.offset + this.length; },
24900 return this.getTextProvider()(this.offset, this.length);
24903 … return this.length === str.length && this.getTextProvider()(this.offset, this.length) === str;
24906 return this.length >= str.length && this.getTextProvider()(this.offset, str.length) === str;
24992 if (node.offset < this.offset || this.offset === -1) {
24993 this.offset = node.offset;
24997 this.length = nodeEnd - this.offset;
25018 Node.prototype.findFirstChildBeforeOffset = function (offset) { argument
25024 if (current.offset <= offset) {
25031 Node.prototype.findChildAtOffset = function (offset, goDeep) { argument
25032 var current = this.findFirstChildBeforeOffset(offset);
25033 if (current && current.end >= offset) {
25035 return current.findChildAtOffset(offset, true) || current;
25042 …return this.offset <= candidate.offset && this.offset + this.length >= candidate.offset + candidat…
25090 _this.offset = -1;
25099 function Identifier(offset, length) { argument
25100 var _this = _super.call(this, offset, length) || this;
25119 function Stylesheet(offset, length) { argument
25120 return _super.call(this, offset, length) || this;
25134 function Declarations(offset, length) { argument
25135 return _super.call(this, offset, length) || this;
25149 function BodyDeclaration(offset, length) { argument
25150 return _super.call(this, offset, length) || this;
25163 function RuleSet(offset, length) { argument
25164 return _super.call(this, offset, length) || this;
25187 function Selector(offset, length) { argument
25188 return _super.call(this, offset, length) || this;
25202 function SimpleSelector(offset, length) { argument
25203 return _super.call(this, offset, length) || this;
25217 function AtApplyRule(offset, length) { argument
25218 return _super.call(this, offset, length) || this;
25241 function AbstractDeclaration(offset, length) { argument
25242 return _super.call(this, offset, length) || this;
25249 function CustomPropertyDeclaration(offset, length) { argument
25250 return _super.call(this, offset, length) || this;
25282 function CustomPropertySet(offset, length) { argument
25283 return _super.call(this, offset, length) || this;
25297 function Declaration(offset, length) { argument
25298 var _this = _super.call(this, offset, length) || this;
25352 function Property(offset, length) { argument
25353 return _super.call(this, offset, length) || this;
25379 function Invocation(offset, length) { argument
25380 return _super.call(this, offset, length) || this;
25400 function Function(offset, length) {
25401 return _super.call(this, offset, length) || this;
25424 function FunctionParameter(offset, length) { argument
25425 return _super.call(this, offset, length) || this;
25454 function FunctionArgument(offset, length) { argument
25455 return _super.call(this, offset, length) || this;
25484 function IfStatement(offset, length) { argument
25485 return _super.call(this, offset, length) || this;
25505 function ForStatement(offset, length) { argument
25506 return _super.call(this, offset, length) || this;
25523 function EachStatement(offset, length) { argument
25524 return _super.call(this, offset, length) || this;
25544 function WhileStatement(offset, length) { argument
25545 return _super.call(this, offset, length) || this;
25559 function ElseStatement(offset, length) { argument
25560 return _super.call(this, offset, length) || this;
25574 function FunctionDeclaration(offset, length) { argument
25575 return _super.call(this, offset, length) || this;
25604 function ViewPort(offset, length) { argument
25605 return _super.call(this, offset, length) || this;
25619 function FontFace(offset, length) { argument
25620 return _super.call(this, offset, length) || this;
25634 function NestedProperties(offset, length) { argument
25635 return _super.call(this, offset, length) || this;
25649 function Keyframe(offset, length) { argument
25650 return _super.call(this, offset, length) || this;
25679 function KeyframeSelector(offset, length) { argument
25680 return _super.call(this, offset, length) || this;
25694 function Import(offset, length) { argument
25695 return _super.call(this, offset, length) || this;
25815 function Namespace(offset, length) { argument
25816 return _super.call(this, offset, length) || this;
25830 function Media(offset, length) { argument
25831 return _super.call(this, offset, length) || this;
25845 function Supports(offset, length) { argument
25846 return _super.call(this, offset, length) || this;
25860 function Document(offset, length) { argument
25861 return _super.call(this, offset, length) || this;
25875 function Medialist(offset, length) { argument
25876 return _super.call(this, offset, length) || this;
25889 function MediaQuery(offset, length) { argument
25890 return _super.call(this, offset, length) || this;
25904 function SupportsCondition(offset, length) { argument
25905 return _super.call(this, offset, length) || this;
25919 function Page(offset, length) { argument
25920 return _super.call(this, offset, length) || this;
25934 function PageBoxMarginBox(offset, length) { argument
25935 return _super.call(this, offset, length) || this;
25949 function Expression(offset, length) { argument
25950 return _super.call(this, offset, length) || this;
25964 function BinaryExpression(offset, length) { argument
25965 return _super.call(this, offset, length) || this;
25997 function Term(offset, length) { argument
25998 return _super.call(this, offset, length) || this;
26024 function AttributeSelector(offset, length) { argument
26025 return _super.call(this, offset, length) || this;
26063 function Operator(offset, length) { argument
26064 return _super.call(this, offset, length) || this;
26078 function HexColorValue(offset, length) { argument
26079 return _super.call(this, offset, length) || this;
26094 function NumericValue(offset, length) { argument
26095 return _super.call(this, offset, length) || this;
26125 function VariableDeclaration(offset, length) { argument
26126 var _this = _super.call(this, offset, length) || this;
26170 function Interpolation(offset, length) { argument
26171 return _super.call(this, offset, length) || this;
26185 function Variable(offset, length) { argument
26186 return _super.call(this, offset, length) || this;
26203 function ExtendsReference(offset, length) { argument
26204 return _super.call(this, offset, length) || this;
26224 function MixinContentReference(offset, length) { argument
26225 return _super.call(this, offset, length) || this;
26245 function MixinContentDeclaration(offset, length) { argument
26246 return _super.call(this, offset, length) || this;
26266 function MixinReference(offset, length) { argument
26267 return _super.call(this, offset, length) || this;
26308 function MixinDeclaration(offset, length) { argument
26309 return _super.call(this, offset, length) || this;
26345 function UnknownAtRule(offset, length) { argument
26346 return _super.call(this, offset, length) || this;
26438 function Marker(node, rule, level, message, offset, length) { argument
26439 if (offset === void 0) { offset = node.offset; }
26445 this.offset = offset;
26455 return this.offset;
26693 …this.token = { type: _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].EOF, offset: -1, len… property in AnonymousFunction410cd55f18f00.Parser.Parser.token
26715 … return !!this.prevToken && (this.prevToken.offset + this.prevToken.len !== this.token.offset);
26796 this.scanner.goBackTo(this.token.offset);
26824 …return new _cssNodes_js__WEBPACK_IMPORTED_MODULE_1__["Node"](this.token.offset, this.token.len, no…
26827 return new ctor(this.token.offset, this.token.len);
26839 var prevEnd = this.prevToken.offset + this.prevToken.len;
26840 …node.length = prevEnd > node.offset ? prevEnd - node.offset : 0; // offset is taken from current t…
26847 …des_js__WEBPACK_IMPORTED_MODULE_1__["Level"].Error, undefined, this.token.offset, this.token.len));
26857 var textProvider = function (offset, length) { argument
26861 return text.substr(offset, length);
26874 … node.textProvider = function (offset, length) { return input.substr(offset, length); }; argument
27048 decl.semicolonPosition = this.prevToken.offset;
27089 node.colonPosition = this.prevToken.offset;
27096 …node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information…
27112 node.colonPosition = this.prevToken.offset;
27124 …node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information…
27136 …node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information…
27143 …PACK_IMPORTED_MODULE_4__["isDefined"])(node.colonPosition) && this.token.offset === node.colonPosi…
27419 node.lParent = this.prevToken.offset;
27430 node.rParent = this.prevToken.offset;
28344 Scanner.prototype.finishToken = function (offset, type, text) { argument
28346 offset: offset,
28347 len: this.stream.pos() - offset,
28349 text: text || this.stream.substring(offset)
28352 Scanner.prototype.substring = function (offset, len) { argument
28353 return this.stream.substring(offset, offset + len);
28362 var offset = this.stream.pos();
28365 return this.finishToken(offset, TokenType.UnquotedString, content.join(''));
28375 var offset = this.stream.pos();
28378 return this.finishToken(offset, TokenType.EOF);
28380 return this.scanNext(offset);
28382 Scanner.prototype.scanNext = function (offset) { argument
28385 return this.finishToken(offset, TokenType.CDO);
28389 return this.finishToken(offset, TokenType.CDC);
28393 return this.finishToken(offset, TokenType.Ident, content.join(''));
28401 return this.finishToken(offset, TokenType.Charset, keywordText);
28403 return this.finishToken(offset, TokenType.AtKeyword, keywordText);
28406 return this.finishToken(offset, TokenType.Delim);
28413 return this.finishToken(offset, TokenType.Hash, content.join(''));
28416 return this.finishToken(offset, TokenType.Delim);
28421 return this.finishToken(offset, TokenType.Exclamation);
28426 content = [this.stream.substring(offset, pos)];
28429 return this.finishToken(offset, TokenType.Percentage);
28436 return this.finishToken(offset, tokenType_1, content.join(''));
28440 return this.finishToken(offset, TokenType.Dimension, content.join(''));
28443 return this.finishToken(offset, TokenType.Num);
28449 return this.finishToken(offset, tokenType, content.join(''));
28455 return this.finishToken(offset, tokenType);
28460 return this.finishToken(offset, TokenType.Includes);
28465 return this.finishToken(offset, TokenType.Dashmatch);
28470 return this.finishToken(offset, TokenType.SubstringOperator);
28475 return this.finishToken(offset, TokenType.PrefixOperator);
28480 return this.finishToken(offset, TokenType.SuffixOperator);
28484 return this.finishToken(offset, TokenType.Delim);
28488 var offset = this.stream.pos();
28491 return this.finishToken(offset, TokenType.Whitespace);
28496 return this.finishToken(offset, TokenType.Comment);
28750 function Scope(offset, length) { argument
28751 this.offset = offset;
28764 Scope.prototype.findScope = function (offset, length) { argument
28766 …if (this.offset <= offset && this.offset + this.length > offset + length || this.offset === offset
28767 return this.findInScope(offset, length);
28771 Scope.prototype.findInScope = function (offset, length) { argument
28774 var end = offset + length;
28775 …_WEBPACK_IMPORTED_MODULE_1__["findFirst"])(this.children, function (s) { return s.offset > end; });
28781 if (res.offset <= offset && res.offset + res.length >= offset + length) {
28782 return res.findInScope(offset, length);
28827 if (node.offset !== -1) {
28828 var current = this.scope.findScope(node.offset, node.length);
28835 if (node.offset !== -1) {
28836 var current = this.scope.findScope(node.offset, node.length);
28837 …if (current && (current.offset !== node.offset || current.length !== node.length)) { // scope alre…
28838 var newScope = new Scope(node.offset, node.length);
28847 if (scopeNode && scopeNode.offset !== -1) {
28900 var current = this.scope.findScope(node.offset, node.length);
28934 if (node.offset !== -1) {
28946 Symbols.prototype.findSymbolsAtOffset = function (offset, referenceType) { argument
28947 var scope = this.global.findScope(offset, 0);
28981 var scope = this.global.findScope(scopeNode.offset, scopeNode.length);
29009 && decl.getValue() && decl.getValue().offset === node.offset) {
29054 Symbols.prototype.findSymbol = function (name, type, offset) { argument
29055 var scope = this.global.findScope(offset);
29205 node.colonPosition = this.prevToken.offset;
29220 …node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information…
29873 LESSScanner.prototype.scanNext = function (offset) { argument
29877 return this.finishToken(offset, tokenType);
29880 return this.finishToken(offset, Ellipsis);
29882 return _super.prototype.scanNext.call(this, offset); argument
30055 node.colonPosition = this.prevToken.offset;
30073 …node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information…
30221 node.colonPosition = this.prevToken.offset;
30237 …node.semicolonPosition = this.token.offset; // not part of the declaration, but useful information…
30830 SCSSScanner.prototype.scanNext = function (offset) { argument
30835 return this.finishToken(offset, VariableName, content.join(''));
30838 this.stream.goBackTo(offset);
30843 return this.finishToken(offset, InterpolationFunction);
30847 return this.finishToken(offset, EqualsOperator);
30851 return this.finishToken(offset, NotEqualsOperator);
30856 return this.finishToken(offset, SmallerEqualsOperator);
30858 … return this.finishToken(offset, _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Delim);
30863 return this.finishToken(offset, GreaterEqualsOperator);
30865 … return this.finishToken(offset, _cssScanner_js__WEBPACK_IMPORTED_MODULE_0__["TokenType"].Delim);
30869 return this.finishToken(offset, Ellipsis);
30871 return _super.prototype.scanNext.call(this, offset); argument
30980 var offset = document.offsetAt(marker.range.start);
30982 …var nodepath = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["getNodePath"](stylesheet, offset);
30987 if (property && property.offset === offset && property.end === end) {
31131 this.offset = document.offsetAt(position);
31133 this.currentWord = getCurrentWord(document, this.offset);
31139 …th = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["getNodePath"](this.styleSheet, this.offset);
31212 if (result.items.length > 0 || this.offset > node.offset) {
31285 … if (completePropertyWithSemicolon && _this.offset >= _this.textDocument.offsetAt(range.end)) {
31352 existingNode = existingNode.findChildAtOffset(this.offset, false);
31463 if (this.offset >= node.offset + 2) {
31469 …var symbols = this.getSymbolContext().findSymbolsAtOffset(this.offset, _parser_cssNodes_js__WEBPAC…
31494 …var symbols = this.getSymbolContext().findSymbolsAtOffset(this.offset, _parser_cssNodes_js__WEBPAC…
31548 if (existingNode && existingNode.offset <= this.offset && this.offset <= existingNode.end) {
31550 var start = this.textDocument.positionAt(existingNode.offset);
31575 this.styleSheet.acceptVisitor(new ColorValueCollector(colorValues, this.offset));
31710 var node = this.styleSheet.findFirstChildBeforeOffset(this.offset);
31738 var isAfter = declarations && declarations.endsWith('}') && this.offset >= declarations.end;
31742 var isInSelectors = !declarations || this.offset <= declarations.offset;
31751 …if (!existingNode && this.offset - this.currentWord.length > 0 && this.textDocument.getText()[this…
31811 var selector = docText.substr(n.offset, n.length);
31825 var selector = ruleSet.getSelectors().findFirstChildBeforeOffset(this.offset);
31833 if (!declarations || this.offset === declarations.offset) { // incomplete nodes
31836 var node = declarations.findFirstChildBeforeOffset(this.offset);
31842 …ACK_IMPORTED_MODULE_6__["isDefined"])(declaration.colonPosition) || this.offset <= declaration.col…
31846 …6__["isDefined"])(declaration.semicolonPosition) && declaration.semicolonPosition < this.offset)) {
31847 if (this.offset === declaration.semicolonPosition + 1) {
31870 …if (this.offset && Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_6__["isDefined"])(declaration…
31886 var node = expression.findChildAtOffset(this.offset, true);
31906 if (declarations && this.offset > declarations.offset && this.offset < declarations.end) {
31913 …var allMixins = this.getSymbolContext().findSymbolsAtOffset(this.offset, _parser_cssNodes_js__WEBP…
31932 …var allFunctions = this.getSymbolContext().findSymbolsAtOffset(this.offset, _parser_cssNodes_js__W…
31957 var child = supportsCondition.findFirstChildBeforeOffset(this.offset);
31960 …__WEBPACK_IMPORTED_MODULE_6__["isDefined"])(child.colonPosition) || this.offset <= child.colonPosi…
31971 …s.offset > supportsCondition.lParent && (!Object(_utils_objects_js__WEBPACK_IMPORTED_MODULE_6__["i…
31978 var inInCondition = !declarations || this.offset <= declarations.offset;
31980 var child = supports.findFirstChildBeforeOffset(this.offset);
31999 … var emptyURIValuePosition = this.textDocument.positionAt(uriLiteralNode.offset + 'url('.length);
32121 if (this.currentOffset < node.offset || node.end < this.currentOffset) {
32129 function getCurrentWord(document, offset) { argument
32130 var i = offset - 1;
32135 return text.substring(i + 1, offset);
32172 return document.positionAt(t.offset).line;
32175 return document.positionAt(t.offset + t.len).line;
32390 …js__WEBPACK_IMPORTED_MODULE_4__["Range"].create(document.positionAt(node.offset), document.positio…
32392 var offset = document.offsetAt(position);
32393 …var nodepath = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_0__["getNodePath"](stylesheet, offset);
32594 var offset = document.offsetAt(position);
32595 …var node = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["getNodeAtOffset"](stylesheet, offset);
32619 var offset = document.offsetAt(position);
32620 …var node = _parser_cssNodes_js__WEBPACK_IMPORTED_MODULE_2__["getNodeAtOffset"](stylesheet, offset);
32922 …js__WEBPACK_IMPORTED_MODULE_0__["Range"].create(document.positionAt(node.offset), document.positio…
32995 var offset = document.offsetAt(position);
32996 var currNode = stylesheet.findChildAtOffset(offset, true);
33003 currNode.offset === currNode.parent.offset &&
33010 if (offset > currNode.offset && offset < currNode.end) {
33012 result.push([currNode.offset + 1, currNode.end - 1]);
33015 result.push([currNode.offset, currNode.end]);
33717 var firstChar = this.documentText.charAt(node.offset);
33854 if (value && this.documentText.charAt(value.offset) !== '-') {
33859 … if (value_1 && this.documentText.charAt(value_1.offset) !== '-' && elements_1[k] !== element) {
34623 function shiftPosition(pos, offset) { argument
34624 …LanguageTypes_js__WEBPACK_IMPORTED_MODULE_0__["Position"].create(pos.line, pos.character + offset);
34749 …var symbols = this.getSymbolContext().findSymbolsAtOffset(this.offset, _parser_cssNodes_js__WEBPAC…
36116 FullTextDocument.prototype.positionAt = function (offset) { argument
36117 offset = Math.max(Math.min(offset, this._content.length), 0);
36121 return { line: 0, character: offset };
36125 if (lineOffsets[mid] > offset) {
36135 return { line: line, character: offset - lineOffsets[line] };