Sha256: c76f95fcb37d9f93b7a1bee78a0a5f332b431bcb2dd0445e4e388606b50f0180

Contents?: true

Size: 485 Bytes

Versions: 11

Compression:

Stored size: 485 Bytes

Contents

import t from "@babel/types";

export default function generateAsserts() {
  let output = `/*
 * This file is auto-generated! Do not modify it directly.
 * To re-generate run 'make build'
 */
import * as t from "@babel/types";
import NodePath from "../index";


export interface NodePathAssetions {`;

  for (const type of [...t.TYPES].sort()) {
    output += `
  assert${type}(
    opts?: object,
  ): asserts this is NodePath<t.${type}>;`;
  }

  output += `
}`;

  return output;
}

Version data entries

11 entries across 10 versions & 3 rubygems

Version Path
disco_app-0.16.1 test/dummy/node_modules/@babel/traverse/scripts/generators/asserts.js
disco_app-0.15.2 test/dummy/node_modules/@babel/traverse/scripts/generators/asserts.js
disco_app-0.18.4 test/dummy/node_modules/@babel/traverse/scripts/generators/asserts.js
disco_app-0.18.1 test/dummy/node_modules/@babel/traverse/scripts/generators/asserts.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/traverse/scripts/generators/asserts.js
disco_app-0.14.0 test/dummy/node_modules/@babel/traverse/scripts/generators/asserts.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/traverse/scripts/generators/asserts.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/@babel/traverse/scripts/generators/asserts.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/@babel/traverse/scripts/generators/asserts.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/@babel/traverse/scripts/generators/asserts.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/@babel/traverse/scripts/generators/asserts.js