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 writeImportEqualsDeclaration(node) { // note usage of writer. methods instead of aliases created, just to make sure we are using // correct writer especially to handle asynchronous alias writing emitJsDocComments(node); if (node.flags & 2 /* Export */) { ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
writeImportEqualsDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getImportEntityNameVisibilityError(symbolAccesibilityResult) { return { diagnosticMessage: ts.Diagnostics.Import_declaration_0_is_using_private_name_1, errorNode: node, typeName: node.name }; }
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getImportEntityNameVisibilityError
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isVisibleNamedBinding(namedBindings) { if (namedBindings) { if (namedBindings.kind === 224 /* NamespaceImport */) { return resolver.isDeclarationVisible(namedBindings); } else { return ts.forEach(namedBindings.e...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
isVisibleNamedBinding
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeImportDeclaration(node) { if (!node.importClause && !(node.flags & 2 /* Export */)) { // do not write non-exported import declarations that don't have import clauses return; } emitJsDocComments(node); if (node.flags & 2 /* Exp...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
writeImportDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitExternalModuleSpecifier(moduleSpecifier) { if (moduleSpecifier.kind === 9 /* StringLiteral */ && (!root) && (compilerOptions.out || compilerOptions.outFile)) { var moduleName = ts.getExternalModuleNameFromDeclaration(host, resolver, moduleSpecifier.parent); if (m...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitExternalModuleSpecifier
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitImportOrExportSpecifier(node) { if (node.propertyName) { writeTextOfNode(currentText, node.propertyName); write(" as "); } writeTextOfNode(currentText, node.name); }
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitImportOrExportSpecifier
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitExportSpecifier(node) { emitImportOrExportSpecifier(node); // Make all the declarations visible for the export name var nodes = resolver.collectLinkedAliases(node.propertyName || node.name); // write each of these declarations asynchronously write...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitExportSpecifier
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitExportDeclaration(node) { emitJsDocComments(node); write("export "); if (node.exportClause) { write("{ "); emitCommaList(node.exportClause.elements, emitExportSpecifier); write(" }"); } else { ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitExportDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeModuleDeclaration(node) { emitJsDocComments(node); emitModuleElementDeclarationFlags(node); if (node.flags & 65536 /* Namespace */) { write("namespace "); } else { write("module "); } writeT...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
writeModuleDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeTypeAliasDeclaration(node) { var prevEnclosingDeclaration = enclosingDeclaration; enclosingDeclaration = node; emitJsDocComments(node); emitModuleElementDeclarationFlags(node); write("type "); writeTextOfNode(currentText, node.name); ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
writeTypeAliasDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getTypeAliasDeclarationVisibilityError(symbolAccesibilityResult) { return { diagnosticMessage: ts.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1, errorNode: node.type, typeName: node.name }; ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getTypeAliasDeclarationVisibilityError
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeEnumDeclaration(node) { emitJsDocComments(node); emitModuleElementDeclarationFlags(node); if (ts.isConst(node)) { write("const "); } write("enum "); writeTextOfNode(currentText, node.name); write(" {"); ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
writeEnumDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitEnumMemberDeclaration(node) { emitJsDocComments(node); writeTextOfNode(currentText, node.name); var enumMemberValue = resolver.getConstantValue(node); if (enumMemberValue !== undefined) { write(" = "); write(enumMemberValue.toS...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitEnumMemberDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isPrivateMethodTypeParameter(node) { return node.parent.kind === 143 /* MethodDeclaration */ && (node.parent.flags & 16 /* Private */); }
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
isPrivateMethodTypeParameter
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitTypeParameters(typeParameters) { function emitTypeParameter(node) { increaseIndent(); emitJsDocComments(node); decreaseIndent(); writeTextOfNode(currentText, node.name); // If there is constraint present and this is...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitTypeParameters
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitTypeParameter(node) { increaseIndent(); emitJsDocComments(node); decreaseIndent(); writeTextOfNode(currentText, node.name); // If there is constraint present and this is not a type parameter of the private method emit the const...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitTypeParameter
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getTypeParameterConstraintVisibilityError(symbolAccesibilityResult) { // Type parameter constraints are named by user so we should always be able to name it var diagnosticMessage; switch (node.parent.kind) { case 214 /* ClassDe...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getTypeParameterConstraintVisibilityError
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitHeritageClause(typeReferences, isImplementsList) { if (typeReferences) { write(isImplementsList ? " implements " : " extends "); emitCommaList(typeReferences, emitTypeOfTypeReference); } function emitTypeOfTypeReference(node) { ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitHeritageClause
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitTypeOfTypeReference(node) { if (ts.isSupportedExpressionWithTypeArguments(node)) { emitTypeWithNewGetSymbolAccessibilityDiagnostic(node, getHeritageClauseVisibilityError); } else if (!isImplementsList && node.expression.kind === 93 /* Null...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitTypeOfTypeReference
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getHeritageClauseVisibilityError(symbolAccesibilityResult) { var diagnosticMessage; // Heritage clause is written by user so it can always be named if (node.parent.parent.kind === 214 /* ClassDeclaration */) { // Class or Inter...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getHeritageClauseVisibilityError
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeClassDeclaration(node) { function emitParameterProperties(constructorDeclaration) { if (constructorDeclaration) { ts.forEach(constructorDeclaration.parameters, function (param) { if (param.flags & 56 /* AccessibilityModifier */) { ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
writeClassDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitParameterProperties(constructorDeclaration) { if (constructorDeclaration) { ts.forEach(constructorDeclaration.parameters, function (param) { if (param.flags & 56 /* AccessibilityModifier */) { emitPropertyDeclaration(pa...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitParameterProperties
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeInterfaceDeclaration(node) { emitJsDocComments(node); emitModuleElementDeclarationFlags(node); write("interface "); writeTextOfNode(currentText, node.name); var prevEnclosingDeclaration = enclosingDeclaration; enclosingDeclaration = n...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
writeInterfaceDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitPropertyDeclaration(node) { if (ts.hasDynamicName(node)) { return; } emitJsDocComments(node); emitClassMemberDeclarationFlags(node); emitVariableDeclaration(node); write(";"); writeLine(); }
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitPropertyDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitVariableDeclaration(node) { // If we are emitting property it isn't moduleElement and hence we already know it needs to be emitted // so there is no check needed to see if declaration is visible if (node.kind !== 211 /* VariableDeclaration */ || resolver.isDeclarationVis...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitVariableDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult) { if (node.kind === 211 /* VariableDeclaration */) { return symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getVariableDeclarationTypeVisibilityDiagnosticMessage
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getVariableDeclarationTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage = getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult); return diagnosticMessage !== undefined ? { diagnosticMessage: diagnosticMessage, ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getVariableDeclarationTypeVisibilityError
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitBindingPattern(bindingPattern) { // Only select non-omitted expression from the bindingPattern's elements. // We have to do this to avoid emitting trailing commas. // For example: // original: var [, c,,] = [ 2,3,4] // ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitBindingPattern
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitBindingElement(bindingElement) { function getBindingElementTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage = getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult); return diagnosticMessage !== undefined ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitBindingElement
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getBindingElementTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage = getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult); return diagnosticMessage !== undefined ? { diagnosticMessage: diagnosticMessa...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getBindingElementTypeVisibilityError
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitTypeOfVariableDeclarationFromTypeLiteral(node) { // if this is property of type literal, // or is parameter of method/call/construct/index signature of type literal // emit only if type is specified if (node.type) { write(": "); ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitTypeOfVariableDeclarationFromTypeLiteral
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isVariableStatementVisible(node) { return ts.forEach(node.declarationList.declarations, function (varDeclaration) { return resolver.isDeclarationVisible(varDeclaration); }); }
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
isVariableStatementVisible
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeVariableStatement(node) { emitJsDocComments(node); emitModuleElementDeclarationFlags(node); if (ts.isLet(node.declarationList)) { write("let "); } else if (ts.isConst(node.declarationList)) { write("const "); ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
writeVariableStatement
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitAccessorDeclaration(node) { if (ts.hasDynamicName(node)) { return; } var accessors = ts.getAllAccessorDeclarations(node.parent.members, node); var accessorWithTypeAnnotation; if (node === accessors.firstAccessor) { ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitAccessorDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getTypeAnnotationFromAccessor(accessor) { if (accessor) { return accessor.kind === 145 /* GetAccessor */ ? accessor.type // Getter - return type : accessor.parameters.length > 0 ? accessor.parameters...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getTypeAnnotationFromAccessor
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getAccessorDeclarationTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage; if (accessorWithTypeAnnotation.kind === 146 /* SetAccessor */) { // Setters have to have type named and cannot infer it so, the type should always be named ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getAccessorDeclarationTypeVisibilityError
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeFunctionDeclaration(node) { if (ts.hasDynamicName(node)) { return; } // If we are emitting Method/Constructor it isn't moduleElement and hence already determined to be emitting // so no need to verify if the declaration is visible ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
writeFunctionDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitSignatureDeclarationWithJsDocComments(node) { emitJsDocComments(node); emitSignatureDeclaration(node); }
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitSignatureDeclarationWithJsDocComments
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitSignatureDeclaration(node) { // Construct signature or constructor type write new Signature if (node.kind === 148 /* ConstructSignature */ || node.kind === 153 /* ConstructorType */) { write("new "); } emitTypeParameters(node.typeParameters); ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitSignatureDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getReturnTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage; switch (node.kind) { case 148 /* ConstructSignature */: // Interfaces cannot have return types that cannot be named diagnosticMessa...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getReturnTypeVisibilityError
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitParameterDeclaration(node) { increaseIndent(); emitJsDocComments(node); if (node.dotDotDotToken) { write("..."); } if (ts.isBindingPattern(node.name)) { // For bindingPattern, we can't simply writeTextOfNode from th...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitParameterDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getParameterDeclarationTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage = getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult); return diagnosticMessage !== undefined ? { diagnosticMessage: diagnosticMessage, ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getParameterDeclarationTypeVisibilityError
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult) { switch (node.parent.kind) { case 144 /* Constructor */: return symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibi...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getParameterDeclarationTypeVisibilityDiagnosticMessage
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitBindingPattern(bindingPattern) { // We have to explicitly emit square bracket and bracket because these tokens are not store inside the node. if (bindingPattern.kind === 161 /* ObjectBindingPattern */) { write("{"); emitCommaList(bindi...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitBindingPattern
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitBindingElement(bindingElement) { function getBindingElementTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage = getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult); return diagnosticMessage !== undefined...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitBindingElement
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getBindingElementTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage = getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult); return diagnosticMessage !== undefined ? { diagnosticMessage: diagnosticMess...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getBindingElementTypeVisibilityError
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitNode(node) { switch (node.kind) { case 213 /* FunctionDeclaration */: case 218 /* ModuleDeclaration */: case 221 /* ImportEqualsDeclaration */: case 215 /* InterfaceDeclaration */: case 214 /* ClassDeclaration */: ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitNode
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeReferencePath(referencedFile) { var declFileName = referencedFile.flags & 4096 /* DeclarationFile */ ? referencedFile.fileName // Declaration file, use declaration file name : ts.shouldEmitToOwnFile(referencedFile, compilerOptions) ? ts.getOw...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
writeReferencePath
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getDeclarationOutput(synchronousDeclarationOutput, moduleElementDeclarationEmitInfo) { var appliedSyncOutputPos = 0; var declarationOutput = ""; // apply asynchronous additions to the synchronous output ts.forEach(moduleElementDeclarationEmitInfo, function (alias...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getDeclarationOutput
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isExternalModuleOrDeclarationFile(sourceFile) { return ts.isExternalModule(sourceFile) || ts.isDeclarationFile(sourceFile); }
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
isExternalModuleOrDeclarationFile
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getResolvedExternalModuleName(host, file) { return file.moduleName || ts.getExternalModuleNameFromPath(host, file.fileName); }
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getResolvedExternalModuleName
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function getExternalModuleNameFromDeclaration(host, resolver, declaration) { var file = resolver.getExternalModuleFileFromDeclaration(declaration); if (!file || ts.isDeclarationFile(file)) { return undefined; } return getResolvedExternalModuleName(host, file); }
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
getExternalModuleNameFromDeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitFiles(resolver, host, targetSourceFile) { // emit output for the __extends helper function var extendsHelper = "\nvar __extends = (this && this.__extends) || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n d.pro...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
emitFiles
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isUniqueLocalName(name, container) { for (var node = container; ts.isNodeDescendentOf(node, container); node = node.nextContainer) { if (node.locals && ts.hasProperty(node.locals, name)) { // We conservatively include alias symbols to cover cases where they're em...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
isUniqueLocalName
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function setLabeledJump(state, isBreak, labelText, labelMarker) { if (isBreak) { if (!state.labeledNonLocalBreaks) { state.labeledNonLocalBreaks = {}; } state.labeledNonLocalBreaks[labelText] = labelMarker; } else { ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
setLabeledJump
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function hoistVariableDeclarationFromLoop(state, declaration) { if (!state.hoistedLocalVariables) { state.hoistedLocalVariables = []; } visit(declaration.name); function visit(node) { if (node.kind === 69 /* Identifier */) { ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
hoistVariableDeclarationFromLoop
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function visit(node) { if (node.kind === 69 /* Identifier */) { state.hoistedLocalVariables.push(node); } else { for (var _a = 0, _b = node.elements; _a < _b.length; _a++) { var element = _b[_a]; ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
visit
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function createFileEmitter() { var writer = ts.createTextWriter(newLine); var write = writer.write, writeTextOfNode = writer.writeTextOfNode, writeLine = writer.writeLine, increaseIndent = writer.increaseIndent, decreaseIndent = writer.decreaseIndent; var currentSourceFile; ...
Gets either the static or instance type of a class element, based on whether the element is declared as "static".
createFileEmitter
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function comparePrecedenceToBinaryPlus(expression) { // All binary expressions have lower precedence than '+' apart from '*', '/', and '%' // which have greater precedence and '-' which has equal precedence. // All unary operators have a higher precedence apar...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
comparePrecedenceToBinaryPlus
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitTemplateSpan(span) { emit(span.expression); emit(span.literal); }
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitTemplateSpan
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function jsxEmitReact(node) { /// Emit a tag name, which is either '"div"' for lower-cased names, or /// 'Div' for upper-cased or dotted names function emitTagName(name) { if (name.kind === 69 /* Identifier */ && ts.isIntrinsicJsxName(name.text)) { ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
jsxEmitReact
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitAttributeName(name) { if (/[A-Za-z_]+[\w*]/.test(name.text)) { write("\""); emit(name); write("\""); } else { emit(name); } ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitAttributeName
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitJsxAttribute(node) { emitAttributeName(node.name); write(": "); if (node.initializer) { emit(node.initializer); } else { write("true"); } ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitJsxAttribute
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitJsxElement(openingNode, children) { var syntheticReactRef = ts.createSynthesizedNode(69 /* Identifier */); syntheticReactRef.text = "React"; syntheticReactRef.parent = openingNode; // Call React.createElement(tag, ... ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitJsxElement
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function jsxEmitPreserve(node) { function emitJsxAttribute(node) { emit(node.name); if (node.initializer) { write("="); emit(node.initializer); } } function emitJsx...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
jsxEmitPreserve
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitJsxAttribute(node) { emit(node.name); if (node.initializer) { write("="); emit(node.initializer); } }
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitJsxAttribute
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitJsxSpreadAttribute(node) { write("{..."); emit(node.expression); write("}"); }
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitJsxSpreadAttribute
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitAttributes(attribs) { for (var i = 0, n = attribs.length; i < n; i++) { if (i > 0) { write(" "); } if (attribs[i].kind === 239 /* JsxSpreadAttribute */) { emit...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitAttributes
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitJsxOpeningOrSelfClosingElement(node) { write("<"); emit(node.tagName); if (node.attributes.length > 0 || (node.kind === 234 /* JsxSelfClosingElement */)) { write(" "); } emitAttribute...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitJsxOpeningOrSelfClosingElement
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitJsxClosingElement(node) { write("</"); emit(node.tagName); write(">"); }
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitJsxClosingElement
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitJsxElement(node) { emitJsxOpeningOrSelfClosingElement(node.openingElement); for (var i = 0, n = node.children.length; i < n; i++) { emit(node.children[i]); } emitJsxClosingElement(node.closingElement); ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitJsxElement
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitExpressionForPropertyName(node) { ts.Debug.assert(node.kind !== 163 /* BindingElement */); if (node.kind === 9 /* StringLiteral */) { emitLiteral(node); } else if (node.kind === 136 /* ComputedPropertyName */) { ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitExpressionForPropertyName
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isExpressionIdentifier(node) { var parent = node.parent; switch (parent.kind) { case 164 /* ArrayLiteralExpression */: case 189 /* AsExpression */: case 181 /* BinaryExpression */: case 168 /* CallEx...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
isExpressionIdentifier
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitExpressionIdentifier(node) { if (resolver.getNodeCheckFlags(node) & 2048 /* LexicalArguments */) { write("_arguments"); return; } var container = resolver.getReferencedExportContainer(node); if (containe...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitExpressionIdentifier
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isNameOfNestedRedeclaration(node) { if (languageVersion < 2 /* ES6 */) { var parent_6 = node.parent; switch (parent_6.kind) { case 163 /* BindingElement */: case 214 /* ClassDeclaration */: ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
isNameOfNestedRedeclaration
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitIdentifier(node) { if (convertedLoopState) { if (node.text == "arguments" && resolver.isArgumentsLocalBinding(node)) { // in converted loop body arguments cannot be used directly. var name_24 = convertedLoopState.argumentsN...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitIdentifier
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitThis(node) { if (resolver.getNodeCheckFlags(node) & 2 /* LexicalThis */) { write("_this"); } else { write("this"); } }
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitThis
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitSuper(node) { if (languageVersion >= 2 /* ES6 */) { write("super"); } else { var flags = resolver.getNodeCheckFlags(node); if (flags & 256 /* SuperInstance */) { write("_super...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitSuper
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitObjectBindingPattern(node) { write("{ "); var elements = node.elements; emitList(elements, 0, elements.length, /*multiLine*/ false, /*trailingComma*/ elements.hasTrailingComma); write(" }"); }
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitObjectBindingPattern
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitArrayBindingPattern(node) { write("["); var elements = node.elements; emitList(elements, 0, elements.length, /*multiLine*/ false, /*trailingComma*/ elements.hasTrailingComma); write("]"); }
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitArrayBindingPattern
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitBindingElement(node) { if (node.propertyName) { emit(node.propertyName); write(": "); } if (node.dotDotDotToken) { write("..."); } if (ts.isBindingPattern(node.name)) ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitBindingElement
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitSpreadElementExpression(node) { write("..."); emit(node.expression); }
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitSpreadElementExpression
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitYieldExpression(node) { write(ts.tokenToString(114 /* YieldKeyword */)); if (node.asteriskToken) { write("*"); } if (node.expression) { write(" "); emit(node.expression); ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitYieldExpression
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitAwaitExpression(node) { var needsParenthesis = needsParenthesisForAwaitExpressionAsYield(node); if (needsParenthesis) { write("("); } write(ts.tokenToString(114 /* YieldKeyword */)); write(" "); ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitAwaitExpression
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function needsParenthesisForAwaitExpressionAsYield(node) { if (node.parent.kind === 181 /* BinaryExpression */ && !ts.isAssignmentOperator(node.parent.operatorToken.kind)) { return true; } else if (node.parent.kind === 182 /* ConditionalExpression */ &...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
needsParenthesisForAwaitExpressionAsYield
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function needsParenthesisForPropertyAccessOrInvocation(node) { switch (node.kind) { case 69 /* Identifier */: case 164 /* ArrayLiteralExpression */: case 166 /* PropertyAccessExpression */: case 167 /* ElementAccessExpressio...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
needsParenthesisForPropertyAccessOrInvocation
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitListWithSpread(elements, needsUniqueCopy, multiLine, trailingComma, useConcat) { var pos = 0; var group = 0; var length = elements.length; while (pos < length) { // Emit using the pattern <group0>.concat(<group1>, <group2>,...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitListWithSpread
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function isSpreadElementExpression(node) { return node.kind === 185 /* SpreadElementExpression */; }
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
isSpreadElementExpression
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitArrayLiteral(node) { var elements = node.elements; if (elements.length === 0) { write("[]"); } else if (languageVersion >= 2 /* ES6 */ || !ts.forEach(elements, isSpreadElementExpression)) { write("["); ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitArrayLiteral
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitObjectLiteralBody(node, numElements) { if (numElements === 0) { write("{}"); return; } write("{"); if (numElements > 0) { var properties = node.properties; // If w...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitObjectLiteralBody
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitDownlevelObjectLiteralWithComputedProperties(node, firstComputedPropertyIndex) { var multiLine = (node.flags & 1024 /* MultiLine */) !== 0; var properties = node.properties; write("("); if (multiLine) { increaseIndent(); ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitDownlevelObjectLiteralWithComputedProperties
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function writeComma() { if (multiLine) { write(","); writeLine(); } else { write(", "); } }
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
writeComma
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitObjectLiteral(node) { var properties = node.properties; if (languageVersion < 2 /* ES6 */) { var numProperties = properties.length; // Find the first computed property. // Everything until that point can be emitted ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitObjectLiteral
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function createBinaryExpression(left, operator, right, startsOnNewLine) { var result = ts.createSynthesizedNode(181 /* BinaryExpression */, startsOnNewLine); result.operatorToken = ts.createSynthesizedNode(operator); result.left = left; result.right = righ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
createBinaryExpression
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function createPropertyAccessExpression(expression, name) { var result = ts.createSynthesizedNode(166 /* PropertyAccessExpression */); result.expression = parenthesizeForAccess(expression); result.dotToken = ts.createSynthesizedNode(21 /* DotToken */); res...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
createPropertyAccessExpression
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function createElementAccessExpression(expression, argumentExpression) { var result = ts.createSynthesizedNode(167 /* ElementAccessExpression */); result.expression = parenthesizeForAccess(expression); result.argumentExpression = argumentExpression; return...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
createElementAccessExpression
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function parenthesizeForAccess(expr) { // When diagnosing whether the expression needs parentheses, the decision should be based // on the innermost expression in a chain of nested type assertions. while (expr.kind === 171 /* TypeAssertionExpression */ || expr.kind === 18...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
parenthesizeForAccess
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitComputedPropertyName(node) { write("["); emitExpressionForPropertyName(node); write("]"); }
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitComputedPropertyName
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitMethod(node) { if (languageVersion >= 2 /* ES6 */ && node.asteriskToken) { write("*"); } emit(node.name); if (languageVersion < 2 /* ES6 */) { write(": function "); } emit...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitMethod
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT
function emitPropertyAssignment(node) { emit(node.name); write(": "); // This is to ensure that we emit comment in the following case: // For example: // obj = { // id: /*comment1*/ ()=>void ...
Returns whether the expression has lesser, greater, or equal precedence to the binary '+' operator
emitPropertyAssignment
javascript
amol-/dukpy
dukpy/jsmodules/typescriptServices.js
https://github.com/amol-/dukpy/blob/master/dukpy/jsmodules/typescriptServices.js
MIT