code
stringlengths
24
2.07M
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
92
language
stringclasses
1 value
repo
stringlengths
5
64
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
function getMatches(candidateContainers, candidate) { if (skipMatch(candidate)) { return undefined; } // First, check that the last part of the dot separated pattern matches the name of the // candidate. If not, then there's no point in proceeding and doi...
Like removeComputedProperties, but retains the properties with well known symbol names
getMatches
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getWordSpans(word) { if (!ts.hasProperty(stringToWordSpans, word)) { stringToWordSpans[word] = breakIntoWordSpans(word); } return stringToWordSpans[word]; }
Like removeComputedProperties, but retains the properties with well known symbol names
getWordSpans
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function matchTextChunk(candidate, chunk, punctuationStripped) { var index = indexOfIgnoringCase(candidate, chunk.textLowerCase); if (index === 0) { if (chunk.text.length === candidate.length) { // a) Check if the part matches the candidate entirely, in an cas...
Like removeComputedProperties, but retains the properties with well known symbol names
matchTextChunk
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function containsSpaceOrAsterisk(text) { for (var i = 0; i < text.length; i++) { var ch = text.charCodeAt(i); if (ch === 32 /* space */ || ch === 42 /* asterisk */) { return true; } } return false; }
Like removeComputedProperties, but retains the properties with well known symbol names
containsSpaceOrAsterisk
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function matchSegment(candidate, segment) { // First check if the segment matches as is. This is also useful if the segment contains // characters we would normally strip when splitting into parts that we also may want to // match in the candidate. For example if the segment is "@i...
Like removeComputedProperties, but retains the properties with well known symbol names
matchSegment
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function partStartsWith(candidate, candidateSpan, pattern, ignoreCase, patternSpan) { var patternPartStart = patternSpan ? patternSpan.start : 0; var patternPartLength = patternSpan ? patternSpan.length : pattern.length; if (patternPartLength > candidateSpan.length) { ...
Like removeComputedProperties, but retains the properties with well known symbol names
partStartsWith
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function tryCamelCaseMatch(candidate, candidateParts, chunk, ignoreCase) { var chunkCharacterSpans = chunk.characterSpans; // Note: we may have more pattern parts than candidate parts. This is because multiple // pattern parts may match a candidate part. For example "SiUI" against ...
Like removeComputedProperties, but retains the properties with well known symbol names
tryCamelCaseMatch
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function comparePunctuation(result1, result2) { // Consider a match to be better if it was successful without stripping punctuation // versus a match that had to strip punctuation to succeed. if (result1.punctuationStripped !== result2.punctuationStripped) { return result1.punctuatio...
Like removeComputedProperties, but retains the properties with well known symbol names
comparePunctuation
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function compareCase(result1, result2) { if (result1.isCaseSensitive !== result2.isCaseSensitive) { return result1.isCaseSensitive ? -1 : 1; } return 0; }
Like removeComputedProperties, but retains the properties with well known symbol names
compareCase
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function compareType(result1, result2) { return result1.kind - result2.kind; }
Like removeComputedProperties, but retains the properties with well known symbol names
compareType
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function compareCamelCase(result1, result2) { if (result1.kind === PatternMatchKind.camelCase && result2.kind === PatternMatchKind.camelCase) { // Swap the values here. If result1 has a higher weight, then we want it to come // first. return result2.camelCaseWeight - result1...
Like removeComputedProperties, but retains the properties with well known symbol names
compareCamelCase
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function createSegment(text) { return { totalTextChunk: createTextChunk(text), subWordTextChunks: breakPatternIntoTextChunks(text) }; }
Like removeComputedProperties, but retains the properties with well known symbol names
createSegment
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function segmentIsInvalid(segment) { return segment.subWordTextChunks.length === 0; }
Like removeComputedProperties, but retains the properties with well known symbol names
segmentIsInvalid
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isUpperCaseLetter(ch) { // Fast check for the ascii range. if (ch >= 65 /* A */ && ch <= 90 /* Z */) { return true; } if (ch < 127 /* maxAsciiCharacter */ || !ts.isUnicodeIdentifierStart(ch, 2 /* Latest */)) { return false; } // TODO: find...
Like removeComputedProperties, but retains the properties with well known symbol names
isUpperCaseLetter
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isLowerCaseLetter(ch) { // Fast check for the ascii range. if (ch >= 97 /* a */ && ch <= 122 /* z */) { return true; } if (ch < 127 /* maxAsciiCharacter */ || !ts.isUnicodeIdentifierStart(ch, 2 /* Latest */)) { return false; } // TODO: fin...
Like removeComputedProperties, but retains the properties with well known symbol names
isLowerCaseLetter
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function containsUpperCaseLetter(string) { for (var i = 0, n = string.length; i < n; i++) { if (isUpperCaseLetter(string.charCodeAt(i))) { return true; } } return false; }
Like removeComputedProperties, but retains the properties with well known symbol names
containsUpperCaseLetter
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function startsWith(string, search) { for (var i = 0, n = search.length; i < n; i++) { if (string.charCodeAt(i) !== search.charCodeAt(i)) { return false; } } return true; }
Like removeComputedProperties, but retains the properties with well known symbol names
startsWith
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function toLowerCase(ch) { // Fast convert for the ascii range. if (ch >= 65 /* A */ && ch <= 90 /* Z */) { return 97 /* a */ + (ch - 65 /* A */); } if (ch < 127 /* maxAsciiCharacter */) { return ch; } // TODO: find a way to compute this for any un...
Like removeComputedProperties, but retains the properties with well known symbol names
toLowerCase
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isDigit(ch) { // TODO(cyrusn): Find a way to support this for unicode digits. return ch >= 48 /* _0 */ && ch <= 57 /* _9 */; }
Like removeComputedProperties, but retains the properties with well known symbol names
isDigit
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isWordChar(ch) { return isUpperCaseLetter(ch) || isLowerCaseLetter(ch) || isDigit(ch) || ch === 95 /* _ */ || ch === 36 /* $ */; }
Like removeComputedProperties, but retains the properties with well known symbol names
isWordChar
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function breakPatternIntoTextChunks(pattern) { var result = []; var wordStart = 0; var wordLength = 0; for (var i = 0; i < pattern.length; i++) { var ch = pattern.charCodeAt(i); if (isWordChar(ch)) { if (wordLength++ === 0) { wo...
Like removeComputedProperties, but retains the properties with well known symbol names
breakPatternIntoTextChunks
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function createTextChunk(text) { var textLowerCase = text.toLowerCase(); return { text: text, textLowerCase: textLowerCase, isLowerCase: text === textLowerCase, characterSpans: breakIntoCharacterSpans(text) }; }
Like removeComputedProperties, but retains the properties with well known symbol names
createTextChunk
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function breakIntoCharacterSpans(identifier) { return breakIntoSpans(identifier, /*word:*/ false); }
Like removeComputedProperties, but retains the properties with well known symbol names
breakIntoCharacterSpans
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function breakIntoWordSpans(identifier) { return breakIntoSpans(identifier, /*word:*/ true); }
Like removeComputedProperties, but retains the properties with well known symbol names
breakIntoWordSpans
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function breakIntoSpans(identifier, word) { var result = []; var wordStart = 0; for (var i = 1, n = identifier.length; i < n; i++) { var lastIsDigit = isDigit(identifier.charCodeAt(i - 1)); var currentIsDigit = isDigit(identifier.charCodeAt(i)); var hasTransit...
Like removeComputedProperties, but retains the properties with well known symbol names
breakIntoSpans
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function charIsPunctuation(ch) { switch (ch) { case 33 /* exclamation */: case 34 /* doubleQuote */: case 35 /* hash */: case 37 /* percent */: case 38 /* ampersand */: case 39 /* singleQuote */: case 40 /* openParen */: ...
Like removeComputedProperties, but retains the properties with well known symbol names
charIsPunctuation
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isAllPunctuation(identifier, start, end) { for (var i = start; i < end; i++) { var ch = identifier.charCodeAt(i); // We don't consider _ or $ as punctuation as there may be things with that name. if (!charIsPunctuation(ch) || ch === 95 /* _ */ || ch === 36 /* $ */) {...
Like removeComputedProperties, but retains the properties with well known symbol names
isAllPunctuation
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function transitionFromUpperToLower(identifier, word, index, wordStart) { if (word) { // Cases this supports: // 1) IDisposable -> I, Disposable // 2) UIElement -> UI, Element // 3) HTMLDocument -> HTML, Document // // etc. if (...
Like removeComputedProperties, but retains the properties with well known symbol names
transitionFromUpperToLower
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function transitionFromLowerToUpper(identifier, word, index) { var lastIsUpper = isUpperCaseLetter(identifier.charCodeAt(index - 1)); var currentIsUpper = isUpperCaseLetter(identifier.charCodeAt(index)); // See if the casing indicates we're starting a new word. Note: if we're breaking on ...
Like removeComputedProperties, but retains the properties with well known symbol names
transitionFromLowerToUpper
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getSignatureHelpItems(program, sourceFile, position, cancellationToken) { var typeChecker = program.getTypeChecker(); // Decide whether to show signature help var startingToken = ts.findTokenOnLeftOfPosition(sourceFile, position); if (!startingToken) { ...
Like removeComputedProperties, but retains the properties with well known symbol names
getSignatureHelpItems
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function createJavaScriptSignatureHelpItems(argumentInfo) { if (argumentInfo.invocation.kind !== 168 /* CallExpression */) { return undefined; } // See if we can find some symbol with the call expression name that has call signatures. v...
Like removeComputedProperties, but retains the properties with well known symbol names
createJavaScriptSignatureHelpItems
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getArgumentIndex(argumentsList, node) { // The list we got back can include commas. In the presence of errors it may // also just have nodes without commas. For example "Foo(a b c)" will have 3 // args without commas. We want to find what index we're at. S...
Returns relevant information for the argument list and the current argument if we are in the argument of an invocation; returns undefined otherwise.
getArgumentIndex
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getArgumentCount(argumentsList) { // The argument count for a list is normally the number of non-comma children it has. // For example, if you have "Foo(a,b)" then there will be three children of the arg // list 'a' '<comma>' 'b'. So, in this case the arg count ...
Returns relevant information for the argument list and the current argument if we are in the argument of an invocation; returns undefined otherwise.
getArgumentCount
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getArgumentIndexForTemplatePiece(spanIndex, node) { // Because the TemplateStringsArray is the first argument, we have to offset each substitution expression by 1. // There are three cases we can encounter: // 1. We are precisely in the template literal (arg...
Returns relevant information for the argument list and the current argument if we are in the argument of an invocation; returns undefined otherwise.
getArgumentIndexForTemplatePiece
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getArgumentListInfoForTemplate(tagExpression, argumentIndex) { // argumentCount is either 1 or (numSpans + 1) to account for the template strings array argument. var argumentCount = tagExpression.template.kind === 11 /* NoSubstitutionTemplateLiteral */ ? 1 ...
Returns relevant information for the argument list and the current argument if we are in the argument of an invocation; returns undefined otherwise.
getArgumentListInfoForTemplate
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getApplicableSpanForArguments(argumentsList) { // We use full start and skip trivia on the end because we want to include trivia on // both sides. For example, // // foo( /*comment */ a, b, c /*comment*/ ) // ...
Returns relevant information for the argument list and the current argument if we are in the argument of an invocation; returns undefined otherwise.
getApplicableSpanForArguments
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getApplicableSpanForTaggedTemplate(taggedTemplate) { var template = taggedTemplate.template; var applicableSpanStart = template.getStart(); var applicableSpanEnd = template.getEnd(); // We need to adjust the end position for the case where the tem...
Returns relevant information for the argument list and the current argument if we are in the argument of an invocation; returns undefined otherwise.
getApplicableSpanForTaggedTemplate
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getContainingArgumentInfo(node) { for (var n = node; n.kind !== 248 /* SourceFile */; n = n.parent) { if (ts.isFunctionBlock(n)) { return undefined; } // If the node is not a subspan of its parent, this is a big...
Returns relevant information for the argument list and the current argument if we are in the argument of an invocation; returns undefined otherwise.
getContainingArgumentInfo
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getChildListThatStartsWithOpenerToken(parent, openerToken, sourceFile) { var children = parent.getChildren(sourceFile); var indexOfOpenerToken = children.indexOf(openerToken); ts.Debug.assert(indexOfOpenerToken >= 0 && children.length > indexOfOpenerToken + 1); ...
Returns relevant information for the argument list and the current argument if we are in the argument of an invocation; returns undefined otherwise.
getChildListThatStartsWithOpenerToken
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function createSignatureHelpItems(candidates, bestSignature, argumentListInfo) { var applicableSpan = argumentListInfo.argumentsSpan; var isTypeParameterList = argumentListInfo.kind === 0 /* TypeArguments */; var invocation = argumentListInfo.invocation; v...
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
createSignatureHelpItems
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function createSignatureHelpParameterForParameter(parameter) { var displayParts = ts.mapToDisplayParts(function (writer) { return typeChecker.getSymbolDisplayBuilder().buildParameterDisplay(parameter, writer, invocation); }); return { ...
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
createSignatureHelpParameterForParameter
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function createSignatureHelpParameterForTypeParameter(typeParameter) { var displayParts = ts.mapToDisplayParts(function (writer) { return typeChecker.getSymbolDisplayBuilder().buildTypeParameterDisplay(typeParameter, writer, invocation); }); ...
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
createSignatureHelpParameterForTypeParameter
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getEndLinePosition(line, sourceFile) { ts.Debug.assert(line >= 0); var lineStarts = sourceFile.getLineStarts(); var lineIndex = line; if (lineIndex + 1 === lineStarts.length) { // last line - return EOF return sourceFile.text.length - 1; } ...
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
getEndLinePosition
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getLineStartPositionForPosition(position, sourceFile) { var lineStarts = sourceFile.getLineStarts(); var line = sourceFile.getLineAndCharacterOfPosition(position).line; return lineStarts[line]; }
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
getLineStartPositionForPosition
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function rangeContainsRange(r1, r2) { return startEndContainsRange(r1.pos, r1.end, r2); }
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
rangeContainsRange
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function startEndContainsRange(start, end, range) { return start <= range.pos && end >= range.end; }
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
startEndContainsRange
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function rangeContainsStartEnd(range, start, end) { return range.pos <= start && range.end >= end; }
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
rangeContainsStartEnd
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function rangeOverlapsWithStartEnd(r1, start, end) { return startEndOverlapsWithStartEnd(r1.pos, r1.end, start, end); }
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
rangeOverlapsWithStartEnd
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function startEndOverlapsWithStartEnd(start1, end1, start2, end2) { var start = Math.max(start1, start2); var end = Math.min(end1, end2); return start < end; }
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
startEndOverlapsWithStartEnd
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function positionBelongsToNode(candidate, position, sourceFile) { return candidate.end > position || !isCompletedNode(candidate, sourceFile); }
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
positionBelongsToNode
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isCompletedNode(n, sourceFile) { if (ts.nodeIsMissing(n)) { return false; } switch (n.kind) { case 214 /* ClassDeclaration */: case 215 /* InterfaceDeclaration */: case 217 /* EnumDeclaration */: case 165 /* ObjectLiteralExpres...
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
isCompletedNode
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function findListItemInfo(node) { var list = findContainingList(node); // It is possible at this point for syntaxList to be undefined, either if // node.parent had no list child, or if none of its list children contained // the span of node. If this happens, return undefined. The caller ...
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
findListItemInfo
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function hasChildOfKind(n, kind, sourceFile) { return !!findChildOfKind(n, kind, sourceFile); }
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
hasChildOfKind
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function findChildOfKind(n, kind, sourceFile) { return ts.forEach(n.getChildren(sourceFile), function (c) { return c.kind === kind && c; }); }
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
findChildOfKind
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function findContainingList(node) { // The node might be a list element (nonsynthetic) or a comma (synthetic). Either way, it will // be parented by the container of the SyntaxList, not the SyntaxList itself. // In order to find the list item index, we first need to locate SyntaxList itself and ...
The selectedItemIndex could be negative for several reasons. 1. There are too many arguments for all of the overloads 2. None of the overloads were type compatible The solution here is to try to pick the best overload by picking either the first one that has an appropriate number of parameters, or the one with ...
findContainingList
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getTouchingToken(sourceFile, position, includeItemAtEndPosition) { return getTokenAtPositionWorker(sourceFile, position, /*allowPositionInLeadingTrivia*/ false, includeItemAtEndPosition); }
Returns the token if position is in [start, end) or if position === end and includeItemAtEndPosition(token) === true
getTouchingToken
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getTokenAtPosition(sourceFile, position) { return getTokenAtPositionWorker(sourceFile, position, /*allowPositionInLeadingTrivia*/ true, /*includeItemAtEndPosition*/ undefined); }
Returns a token if position is in [start-of-leading-trivia, end)
getTokenAtPosition
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function findNextToken(previousToken, parent) { return find(parent); function find(n) { if (isToken(n) && n.pos === previousToken.end) { // this is token that starts at the end of previous token - return it return n; } var children = n....
The token on the left of the position is the token that strictly includes the position or sits to the left of the cursor if it is on a boundary. For example fo|o -> will return foo foo <comment> |bar -> will return foo
findNextToken
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function find(n) { if (isToken(n) && n.pos === previousToken.end) { // this is token that starts at the end of previous token - return it return n; } var children = n.getChildren(); for (var _i = 0, children_1 = children; _i < children_1.le...
The token on the left of the position is the token that strictly includes the position or sits to the left of the cursor if it is on a boundary. For example fo|o -> will return foo foo <comment> |bar -> will return foo
find
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function findPrecedingToken(position, sourceFile, startNode) { return find(startNode || sourceFile); function findRightmostToken(n) { if (isToken(n) || n.kind === 236 /* JsxText */) { return n; } var children = n.getChildren(); var candidat...
The token on the left of the position is the token that strictly includes the position or sits to the left of the cursor if it is on a boundary. For example fo|o -> will return foo foo <comment> |bar -> will return foo
findPrecedingToken
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function findRightmostToken(n) { if (isToken(n) || n.kind === 236 /* JsxText */) { return n; } var children = n.getChildren(); var candidate = findRightmostChildNodeWithTokens(children, /*exclusiveStartPosition*/ children.length); return candid...
The token on the left of the position is the token that strictly includes the position or sits to the left of the cursor if it is on a boundary. For example fo|o -> will return foo foo <comment> |bar -> will return foo
findRightmostToken
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function find(n) { if (isToken(n) || n.kind === 236 /* JsxText */) { return n; } var children = n.getChildren(); for (var i = 0, len = children.length; i < len; i++) { var child = children[i]; // condition 'position < child....
The token on the left of the position is the token that strictly includes the position or sits to the left of the cursor if it is on a boundary. For example fo|o -> will return foo foo <comment> |bar -> will return foo
find
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isInString(sourceFile, position) { var token = getTokenAtPosition(sourceFile, position); return token && token.kind === 9 /* StringLiteral */ && position > token.getStart(); }
The token on the left of the position is the token that strictly includes the position or sits to the left of the cursor if it is on a boundary. For example fo|o -> will return foo foo <comment> |bar -> will return foo
isInString
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isInComment(sourceFile, position) { return isInCommentHelper(sourceFile, position, /*predicate*/ undefined); }
The token on the left of the position is the token that strictly includes the position or sits to the left of the cursor if it is on a boundary. For example fo|o -> will return foo foo <comment> |bar -> will return foo
isInComment
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isInCommentHelper(sourceFile, position, predicate) { var token = getTokenAtPosition(sourceFile, position); if (token && position <= token.getStart()) { var commentRanges = ts.getLeadingCommentRanges(sourceFile.text, token.pos); // The end marker of a single-line comment ...
Returns true if the cursor at position in sourceFile is within a comment that additionally satisfies predicate, and false otherwise.
isInCommentHelper
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function hasDocComment(sourceFile, position) { var token = getTokenAtPosition(sourceFile, position); // First, we have to see if this position actually landed in a comment. var commentRanges = ts.getLeadingCommentRanges(sourceFile.text, token.pos); return ts.forEach(commentRanges, jsDocP...
Returns true if the cursor at position in sourceFile is within a comment that additionally satisfies predicate, and false otherwise.
hasDocComment
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function jsDocPrefix(c) { var text = sourceFile.text; return text.length >= c.pos + 3 && text[c.pos] === '/' && text[c.pos + 1] === '*' && text[c.pos + 2] === '*'; }
Returns true if the cursor at position in sourceFile is within a comment that additionally satisfies predicate, and false otherwise.
jsDocPrefix
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function nodeHasTokens(n) { // If we have a token or node that has a non-zero width, it must have tokens. // Note, that getWidth() does not take trivia into account. return n.getWidth() !== 0; }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
nodeHasTokens
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getNodeModifiers(node) { var flags = ts.getCombinedNodeFlags(node); var result = []; if (flags & 16 /* Private */) result.push(ts.ScriptElementKindModifier.privateMemberModifier); if (flags & 32 /* Protected */) result.push(ts.ScriptElementKindModifier.pr...
Get the corresponding JSDocTag node if the position is in a jsDoc comment
getNodeModifiers
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getTypeArgumentOrTypeParameterList(node) { if (node.kind === 151 /* TypeReference */ || node.kind === 168 /* CallExpression */) { return node.typeArguments; } if (ts.isFunctionLike(node) || node.kind === 214 /* ClassDeclaration */ || node.kind === 215 /* InterfaceDeclaration...
Get the corresponding JSDocTag node if the position is in a jsDoc comment
getTypeArgumentOrTypeParameterList
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isToken(n) { return n.kind >= 0 /* FirstToken */ && n.kind <= 134 /* LastToken */; }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
isToken
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isWord(kind) { return kind === 69 /* Identifier */ || ts.isKeyword(kind); }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
isWord
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isPropertyName(kind) { return kind === 9 /* StringLiteral */ || kind === 8 /* NumericLiteral */ || isWord(kind); }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
isPropertyName
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isComment(kind) { return kind === 2 /* SingleLineCommentTrivia */ || kind === 3 /* MultiLineCommentTrivia */; }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
isComment
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isStringOrRegularExpressionOrTemplateLiteral(kind) { if (kind === 9 /* StringLiteral */ || kind === 10 /* RegularExpressionLiteral */ || ts.isTemplateLiteralKind(kind)) { return true; } return false; }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
isStringOrRegularExpressionOrTemplateLiteral
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isPunctuation(kind) { return 15 /* FirstPunctuation */ <= kind && kind <= 68 /* LastPunctuation */; }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
isPunctuation
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isInsideTemplateLiteral(node, position) { return ts.isTemplateLiteralKind(node.kind) && (node.getStart() < position && position < node.getEnd()) || (!!node.isUnterminated && position === node.getEnd()); }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
isInsideTemplateLiteral
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isAccessibilityModifier(kind) { switch (kind) { case 112 /* PublicKeyword */: case 110 /* PrivateKeyword */: case 111 /* ProtectedKeyword */: return true; } return false; }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
isAccessibilityModifier
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function compareDataObjects(dst, src) { for (var e in dst) { if (typeof dst[e] === "object") { if (!compareDataObjects(dst[e], src[e])) { return false; } } else if (typeof dst[e] !== "function") { if (dst[e] ...
Get the corresponding JSDocTag node if the position is in a jsDoc comment
compareDataObjects
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isFirstDeclarationOfSymbolParameter(symbol) { return symbol.declarations && symbol.declarations.length > 0 && symbol.declarations[0].kind === 138 /* Parameter */; }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
isFirstDeclarationOfSymbolParameter
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getDisplayPartWriter() { var displayParts; var lineStart; var indent; resetWriter(); return { displayParts: function () { return displayParts; }, writeKeyword: function (text) { return writeKind(text, ts.SymbolDisplayPartKind.keyword); }, ...
Get the corresponding JSDocTag node if the position is in a jsDoc comment
getDisplayPartWriter
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeIndent() { if (lineStart) { var indentString = ts.getIndentString(indent); if (indentString) { displayParts.push(displayPart(indentString, ts.SymbolDisplayPartKind.space)); } lineStart = false; } ...
Get the corresponding JSDocTag node if the position is in a jsDoc comment
writeIndent
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeKind(text, kind) { writeIndent(); displayParts.push(displayPart(text, kind)); }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
writeKind
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeSymbol(text, symbol) { writeIndent(); displayParts.push(symbolPart(text, symbol)); }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
writeSymbol
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeLine() { displayParts.push(lineBreakPart()); lineStart = true; }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
writeLine
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function resetWriter() { displayParts = []; lineStart = true; indent = 0; }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
resetWriter
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function symbolPart(text, symbol) { return displayPart(text, displayPartKind(symbol), symbol); function displayPartKind(symbol) { var flags = symbol.flags; if (flags & 3 /* Variable */) { return isFirstDeclarationOfSymbolParameter(symbol) ? ts.SymbolDisplayPartKin...
Get the corresponding JSDocTag node if the position is in a jsDoc comment
symbolPart
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function displayPartKind(symbol) { var flags = symbol.flags; if (flags & 3 /* Variable */) { return isFirstDeclarationOfSymbolParameter(symbol) ? ts.SymbolDisplayPartKind.parameterName : ts.SymbolDisplayPartKind.localName; } else if (flags & 4 /* Property ...
Get the corresponding JSDocTag node if the position is in a jsDoc comment
displayPartKind
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function displayPart(text, kind, symbol) { return { text: text, kind: ts.SymbolDisplayPartKind[kind] }; }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
displayPart
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function spacePart() { return displayPart(" ", ts.SymbolDisplayPartKind.space); }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
spacePart
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function keywordPart(kind) { return displayPart(ts.tokenToString(kind), ts.SymbolDisplayPartKind.keyword); }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
keywordPart
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function punctuationPart(kind) { return displayPart(ts.tokenToString(kind), ts.SymbolDisplayPartKind.punctuation); }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
punctuationPart
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function operatorPart(kind) { return displayPart(ts.tokenToString(kind), ts.SymbolDisplayPartKind.operator); }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
operatorPart
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function textOrKeywordPart(text) { var kind = ts.stringToToken(text); return kind === undefined ? textPart(text) : keywordPart(kind); }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
textOrKeywordPart
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function textPart(text) { return displayPart(text, ts.SymbolDisplayPartKind.text); }
Get the corresponding JSDocTag node if the position is in a jsDoc comment
textPart
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getFormattingScanner(sourceFile, startPos, endPos) { ts.Debug.assert(scanner === undefined); scanner = sourceFile.languageVariant === 1 /* JSX */ ? jsxScanner : standardScanner; scanner.setText(sourceFile.text); scanner.setTextPos(startPos); var wasNe...
Scanner that is currently used for formatting
getFormattingScanner
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function advance() { ts.Debug.assert(scanner !== undefined); lastTokenInfo = undefined; var isStarted = scanner.getStartPos() !== startPos; if (isStarted) { if (trailingTrivia) { ts.Debug.assert(trailingTrivia.le...
Scanner that is currently used for formatting
advance
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function shouldRescanGreaterThanToken(node) { if (node) { switch (node.kind) { case 29 /* GreaterThanEqualsToken */: case 64 /* GreaterThanGreaterThanEqualsToken */: case 65 /* GreaterThanGreaterThanGreaterThanEq...
Scanner that is currently used for formatting
shouldRescanGreaterThanToken
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function shouldRescanJsxIdentifier(node) { if (node.parent) { switch (node.parent.kind) { case 238 /* JsxAttribute */: case 235 /* JsxOpeningElement */: case 237 /* JsxClosingElement */: c...
Scanner that is currently used for formatting
shouldRescanJsxIdentifier
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function shouldRescanSlashToken(container) { return container.kind === 10 /* RegularExpressionLiteral */; }
Scanner that is currently used for formatting
shouldRescanSlashToken
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT