40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 
								 | 
							
								"use strict";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								Object.defineProperty(exports, "__esModule", {
							 | 
						||
| 
								 | 
							
								  value: true
							 | 
						||
| 
								 | 
							
								});
							 | 
						||
| 
								 | 
							
								exports.default = void 0;
							 | 
						||
| 
								 | 
							
								const NodeDescriptions = {
							 | 
						||
| 
								 | 
							
								  ArrayPattern: "array destructuring pattern",
							 | 
						||
| 
								 | 
							
								  AssignmentExpression: "assignment expression",
							 | 
						||
| 
								 | 
							
								  AssignmentPattern: "assignment expression",
							 | 
						||
| 
								 | 
							
								  ArrowFunctionExpression: "arrow function expression",
							 | 
						||
| 
								 | 
							
								  ConditionalExpression: "conditional expression",
							 | 
						||
| 
								 | 
							
								  CatchClause: "catch clause",
							 | 
						||
| 
								 | 
							
								  ForOfStatement: "for-of statement",
							 | 
						||
| 
								 | 
							
								  ForInStatement: "for-in statement",
							 | 
						||
| 
								 | 
							
								  ForStatement: "for-loop",
							 | 
						||
| 
								 | 
							
								  FormalParameters: "function parameter list",
							 | 
						||
| 
								 | 
							
								  Identifier: "identifier",
							 | 
						||
| 
								 | 
							
								  ImportSpecifier: "import specifier",
							 | 
						||
| 
								 | 
							
								  ImportDefaultSpecifier: "import default specifier",
							 | 
						||
| 
								 | 
							
								  ImportNamespaceSpecifier: "import namespace specifier",
							 | 
						||
| 
								 | 
							
								  ObjectPattern: "object destructuring pattern",
							 | 
						||
| 
								 | 
							
								  ParenthesizedExpression: "parenthesized expression",
							 | 
						||
| 
								 | 
							
								  RestElement: "rest element",
							 | 
						||
| 
								 | 
							
								  UpdateExpression: {
							 | 
						||
| 
								 | 
							
								    true: "prefix operation",
							 | 
						||
| 
								 | 
							
								    false: "postfix operation"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  VariableDeclarator: "variable declaration",
							 | 
						||
| 
								 | 
							
								  YieldExpression: "yield expression"
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								const toNodeDescription = ({
							 | 
						||
| 
								 | 
							
								  type,
							 | 
						||
| 
								 | 
							
								  prefix
							 | 
						||
| 
								 | 
							
								}) => type === "UpdateExpression" ? NodeDescriptions.UpdateExpression[String(prefix)] : NodeDescriptions[type];
							 | 
						||
| 
								 | 
							
								var _default = toNodeDescription;
							 | 
						||
| 
								 | 
							
								exports.default = _default;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								//# sourceMappingURL=to-node-description.js.map
							 |