mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Compile build folder (#22811)
* Compile build folder * Fix build compile issues (#22813) * Revert changes * Update gulp-shell * Test * Update * Update modifiers * Try reverting minimist * Generates linux deb artifact (#22922) * Remove deb files that were brought in with the latest merge. * Add debian back to linux gulp file * Remove async from anonymous function. * Remove run core integration tests build step in pipeline * Revert "Remove async from anonymous function." This reverts commit 7ad1ce2942954fce58939b9965343b46b9311a7e. * Revert "Add debian back to linux gulp file" This reverts commit 96b7c0f0995c8024ef67ed886da34255a5caa325. * Revert "Remove deb files that were brought in with the latest merge." This reverts commit bf3aae233b8da1f9111a149a96d77cc78d376094. * Removes dependency checks * Fix dependency gen errors * Reenable "Build Deb" step * Reenable publish deb * Run core integration tests * Revert "Run core integration tests" This reverts commit 7cafbada194feebe771862af796fb3416b5dd686. * Revert "Try reverting minimist" This reverts commit 38fd843c1d5c33318a92f4bbc7057e951c5a9f71. * Disable code coverage step intermin --------- Co-authored-by: Charles Gagnon <chgagnon@microsoft.com> Co-authored-by: Lewis Sanchez <87730006+lewis-sanchez@users.noreply.github.com>
This commit is contained in:
@@ -115,7 +115,7 @@ function getNodeText(sourceFile: ts.SourceFile, node: { pos: number; end: number
|
||||
return sourceFile.getFullText().substring(node.pos, node.end);
|
||||
}
|
||||
|
||||
function hasModifier(modifiers: ts.NodeArray<ts.Modifier> | undefined, kind: ts.SyntaxKind): boolean {
|
||||
function hasModifier(modifiers: readonly ts.Modifier[] | undefined, kind: ts.SyntaxKind): boolean {
|
||||
if (modifiers) {
|
||||
for (let i = 0; i < modifiers.length; i++) {
|
||||
let mod = modifiers[i];
|
||||
@@ -128,14 +128,13 @@ function hasModifier(modifiers: ts.NodeArray<ts.Modifier> | undefined, kind: ts.
|
||||
}
|
||||
|
||||
function isStatic(member: ts.ClassElement | ts.TypeElement): boolean {
|
||||
return hasModifier(member.modifiers, ts.SyntaxKind.StaticKeyword);
|
||||
const modifiers = ts.canHaveModifiers(member) ? ts.getModifiers(member) : undefined;
|
||||
return hasModifier(modifiers, ts.SyntaxKind.StaticKeyword);
|
||||
}
|
||||
|
||||
function isDefaultExport(declaration: ts.InterfaceDeclaration | ts.ClassDeclaration): boolean {
|
||||
return (
|
||||
hasModifier(declaration.modifiers, ts.SyntaxKind.DefaultKeyword)
|
||||
&& hasModifier(declaration.modifiers, ts.SyntaxKind.ExportKeyword)
|
||||
);
|
||||
const modifiers = ts.canHaveModifiers(declaration) ? ts.getModifiers(declaration) : undefined;
|
||||
return hasModifier(modifiers, ts.SyntaxKind.DefaultKeyword) && hasModifier(modifiers, ts.SyntaxKind.ExportKeyword);
|
||||
}
|
||||
|
||||
function getMassagedTopLevelDeclarationText(sourceFile: ts.SourceFile, declaration: TSTopLevelDeclare, importName: string, usage: string[], enums: IEnumEntry[]): string {
|
||||
@@ -612,7 +611,7 @@ class CacheEntry {
|
||||
constructor(
|
||||
public readonly sourceFile: ts.SourceFile,
|
||||
public readonly mtime: number
|
||||
) {}
|
||||
) { }
|
||||
}
|
||||
|
||||
export class DeclarationResolver {
|
||||
|
||||
Reference in New Issue
Block a user