function tryEmitStartOfVariableDeclarationList(decl, startPos) {
                if (shouldHoistVariable(decl, /*checkIfSourceFileLevelDecl*/ true)) {
                    // variables in variable declaration list were already hoisted
                    return false;
                }
                var tokenKind = 102 /* VarKeyword */;
                if (decl && languageVersion >= 2 /* ES6 */) {
                    if (ts.isLet(decl)) {
                        tokenKind = 108 /* LetKeyword */;
                    }
                    else if (ts.isConst(decl)) {
                        tokenKind = 74 /* ConstKeyword */;
                    }
                }
                if (startPos !== undefined) {
                    emitToken(tokenKind, startPos);
                    write(" ");
                }
                else {
                    switch (tokenKind) {
                        case 102 /* VarKeyword */:
                            write("var ");
                            break;
                        case 108 /* LetKeyword */:
                            write("let ");
                            break;
                        case 74 /* ConstKeyword */:
                            write("const ");
                            break;
                    }
                }
                return true;
            }