<commit_before>import * as ts from 'typescript';
import { EmitterContext } from './emitter';
import {
  addWhitespace,
  emitStatic,
  addSemicolon,
  endNode
} from './utils';

export function emitType(this: any, node: ts.TypeNode, context: EmitterContext): string {
  const typeEmitterName = `emitType${ts.SyntaxKind[node.kind]}`;
  if (this[typeEmitterName] !== undefined) {
    return this[typeEmitterName](node, context);
  }
  throw new Error(`Unknown type node kind ${ts.SyntaxKind[node.kind]}`);
}

export function emitTypeStringKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('string', node, context);
}

export function emitTypeTrueKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('true', node, context);
}

export function emitTypeNumberKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('number', node, context);
}

export function emitTypeBooleanKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('boolean', node, context);
}

export function emitTypeObjectKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('object', node, context);
}

export function emitTypeVoidKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('void', node, context);
}

export function emitTypeNeverKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('never', node, context);
}

export function emitTypeAnyKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('any', node, context);
}

export function emitTypeNullKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {<commit_msg>feat: add type node false keyword<commit_after>import * as ts from 'typescript';
import { EmitterContext } from './emitter';
import {
  addWhitespace,
  emitStatic,
  addSemicolon,
  endNode
} from './utils';

export function emitType(this: any, node: ts.TypeNode, context: EmitterContext): string {
  const typeEmitterName = `emitType${ts.SyntaxKind[node.kind]}`;
  if (this[typeEmitterName] !== undefined) {
    return this[typeEmitterName](node, context);
  }
  throw new Error(`Unknown type node kind ${ts.SyntaxKind[node.kind]}`);
}

export function emitTypeStringKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('string', node, context);
}

export function emitTypeTrueKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('true', node, context);
}

export function emitTypeFalseKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('false', node, context);
}

export function emitTypeNumberKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('number', node, context);
}

export function emitTypeBooleanKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('boolean', node, context);
}

export function emitTypeObjectKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('object', node, context);
}

export function emitTypeVoidKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('void', node, context);
}

export function emitTypeNeverKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('never', node, context);
}

export function emitTypeAnyKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
  return _emitTypeKeyword('any', node, context);
}

export function emitTypeNullKeyword(this: any, node: ts.KeywordTypeNode, context: EmitterContext): string {
{'fraction_non_alphanumeric': 0.11687669878922659, 'fraction_numerical': 0.0, 'mean_word_length': 6.860194174757281, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2701088', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1218, 'n_words': 326}