Searched refs:firstNonWhitespace (Results 1 – 5 of 5) sorted by relevance
455 let firstNonWhitespace = 0;467 if (firstNonWhitespace !== -1 && lastNonWhitespace !== -1) {468 …acc = addLineOfJsxText(acc, text.substr(firstNonWhitespace, lastNonWhitespace - firstNonWhitespace…473 firstNonWhitespace = -1;477 if (firstNonWhitespace === -1) {478 firstNonWhitespace = i;483 return firstNonWhitespace !== -1485 ? addLineOfJsxText(acc, text.substr(firstNonWhitespace))
2334 let firstNonWhitespace = 0;2364 if (isLineBreak(char) && firstNonWhitespace === 0) {2365 firstNonWhitespace = -1;2367 else if (!allowMultilineJsxText && isLineBreak(char) && firstNonWhitespace > 0) {2373 firstNonWhitespace = pos;2381 … return firstNonWhitespace === -1 ? SyntaxKind.JsxTextAllWhiteSpaces : SyntaxKind.JsxText;
1750 const std::string::size_type firstNonWhitespace = line.find_first_not_of("\t "); in injectExtensionRequirements() local1751 …onst bool isPreprocessorDirective = (firstNonWhitespace != std::string::npos && line.at(first… in injectExtensionRequirements()
12183 var firstNonWhitespace = 0;12210 if (isLineBreak(char) && firstNonWhitespace === 0) {12211 firstNonWhitespace = -1;12213 else if (!allowMultilineJsxText && isLineBreak(char) && firstNonWhitespace > 0) {12219 firstNonWhitespace = pos;12224 …return firstNonWhitespace === -1 ? 12 /* SyntaxKind.JsxTextAllWhiteSpaces */ : 11 /* SyntaxKind.Js…102765 var firstNonWhitespace = 0;102776 if (firstNonWhitespace !== -1 && lastNonWhitespace !== -1) {102777 …acc = addLineOfJsxText(acc, text.substr(firstNonWhitespace, lastNonWhitespace - firstNonWhitespace…102781 firstNonWhitespace = -1;[all …]
9123 var firstNonWhitespace = 0;9142 if (isLineBreak(char) && firstNonWhitespace === 0) {9143 firstNonWhitespace = -1;9145 else if (!allowMultilineJsxText && isLineBreak(char) && firstNonWhitespace > 0) {9149 firstNonWhitespace = pos;9154 return firstNonWhitespace === -1 ? 12 : 11;86288 var firstNonWhitespace = 0;86293 if (firstNonWhitespace !== -1 && lastNonWhitespace !== -1) {86294 …acc = addLineOfJsxText(acc, text.substr(firstNonWhitespace, lastNonWhitespace - firstNonWhitespace…86296 firstNonWhitespace = -1;[all …]