Codota Logo For Javascript
Identifier.name
Code IndexAdd Codota to your IDE (free)

How to use
name
function
in
Identifier

Best JavaScript code snippets using @babel/types.Identifier.name(Showing top 3 results out of 1,395)

origin: nodejs/node-v8

/**
 * Filter out disallowed V8 runtime functions.
 */
function neuterDisallowedV8Natives(ast) {
 babelTraverse(ast, {
  CallExpression(path) {
   if (!babelTypes.isIdentifier(path.node.callee) ||
     !path.node.callee.name.startsWith(V8_BUILTIN_PREFIX)) {
    return;
   }

   const functionName = path.node.callee.name.substr(
     V8_BUILTIN_PREFIX.length);

   if (!exceptions.isAllowedRuntimeFunction(functionName)) {
    path.replaceWith(babelTypes.callExpression(
      babelTypes.identifier('nop'), []));
   }
  }
 });
}
origin: Ghost---Shadow/unit-test-recorder

const result = [];
objectProperties.forEach((property) => {
 const functionName = property.key.name;
 const name = `${objName}.${functionName}`;
 if (t.isArrowFunctionExpression(property.value)) {
  const paramIds = property.value.params.map(p => p.name);
  const isAsync = !!property.value.async;
  result.push({
  const paramIds = property.params.map(p => p.name);
  const isAsync = !!property.async;
  result.push({
  const subObjName = `${objName}.${property.key.name}`;
  const { properties } = property.value;
  const subResult = traverseProperties(subObjName, properties);
origin: nodejs/node-v8

Identifier(path) {
    if (globalIdentifiers.has(path.node.name) &&
      path.node.name != 'eval') {
    if (propertyNames.has(path.node.name) &&
      path.parentPath.isMemberExpression() &&
      path.parentKey !== 'object') {
    let binding = path.scope.getBinding(path.node.name);
    if (!binding) {
    if (path.node.name.startsWith('VAR_')) {
     newName = path.node.name;
    } else if (babelTypes.isFunctionDeclaration(binding.path.node) ||
          babelTypes.isFunctionExpression(binding.path.node) ||
    } else {
     newName = 'VAR_' + varIndex++;
     path.scope.rename(path.node.name, newName);
@babel/types(npm)Identifiername

Most used @babel/types functions

  • identifier
  • stringLiteral
  • StringLiteral.value
  • callExpression
  • ImportDeclaration.source
  • isIdentifier,
  • isMemberExpression,
  • objectExpression,
  • objectProperty,
  • variableDeclaration,
  • variableDeclarator,
  • AnyTypeAnnotation.type,
  • ArrayExpression.name,
  • Identifier.name,
  • arrowFunctionExpression,
  • functionExpression,
  • isStringLiteral,
  • isThisExpression,
  • memberExpression

Popular in JavaScript

  • winston
    A logger for just about everything.
  • mongodb
    The official MongoDB driver for Node.js
  • readable-stream
    Streams3, a user-land copy of the stream library from Node.js
  • mime-types
    The ultimate javascript content-type utility.
  • minimatch
    a glob matcher in javascript
  • request
    Simplified HTTP request client.
  • async
    Higher-order functions and common patterns for asynchronous code
  • aws-sdk
    AWS SDK for JavaScript
  • body-parser
    Node.js body parsing middleware
  • Top plugins for WebStorm
    The challenge is finding the best plugins for JavaScript development on Intellij IDEs. Who wants to sit there and go over hundreds of plugins to pick the best?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJavascript Code Index
Get Codota for your IDE now