Lines Matching full:name
140 // recordFuncDecl must behind recordEcmaExportInfo() cause function without name
268 …let name: string = childNode.name ? jshelpers.getTextOfIdentifierOrLiteral(childNode.name) : "*de…
271 let classDecl = new ClassDecl(name, childNode, moduleKind);
286 let name = jshelpers.getTextOfIdentifierOrLiteral(id);
297 let decl = this.addVariableDeclToScope(scope, id, parent, name, declKind, isExportDecl);
303 let declScope = scope.findDeclPos(name);
305 let decl = <Decl>declScope.getDecl(name);
331 if (name == MandatoryArguments) {
337 …private addVariableDeclToScope(scope: Scope, node: ts.Node, parent: ts.Node, name: string, declKin…
339 let decl = new VarDecl(name, node, moduleKind);
346 decl = new CatchParameter(name, node);
348 decl = new LetDecl(name, node, moduleKind);
352 decl = new ConstDecl(name, node, moduleKind);
364 parent.name == id) {
367 parent.name == id) {
394 if (importClause.name) {
395 let name = jshelpers.getTextOfIdentifierOrLiteral(importClause.name);
396 importStmt.addLocalName(name, "default");
397 importStmt.addNodeMap(importClause.name, importClause.name);
407 … let nameSpace = jshelpers.getTextOfIdentifierOrLiteral((<ts.NamespaceImport>namedBindings).name);
414 let name: string = jshelpers.getTextOfIdentifierOrLiteral(element.name);
415 …tring = element.propertyName ? jshelpers.getTextOfIdentifierOrLiteral(element.propertyName) : name;
416 importStmt.addLocalName(name, exoticName);
417 … importStmt.addNodeMap(element.name, element.propertyName ? element.propertyName : element.name);
444 …tmt.setNameSpace(jshelpers.getTextOfIdentifierOrLiteral((<ts.NamespaceExport>namedBindings).name));
449 let name: string = jshelpers.getTextOfIdentifierOrLiteral(element.name);
450 …tring = element.propertyName ? jshelpers.getTextOfIdentifierOrLiteral(element.propertyName) : name;
451 exportStmt.addLocalName(name, exoticName);
452 … exportStmt.addNodeMap(element.name, element.propertyName ? element.propertyName : element.name);
470 … let nameSpace = jshelpers.getTextOfIdentifierOrLiteral((<ts.NamespaceImport>namedBindings).name);
480 let localName: string = jshelpers.getTextOfIdentifierOrLiteral(element.name);
492 if (importClause.name) {
493 let localName = jshelpers.getTextOfIdentifierOrLiteral(importClause.name);
494 scope.setDecls(new ConstDecl(localName, importClause.name, ModuleVarKind.IMPORTED));
536 … let exportName: string = jshelpers.getTextOfIdentifierOrLiteral(element.name);
549 let exportName: string = jshelpers.getTextOfIdentifierOrLiteral(element.name);
571 …// "*default*" is used within this specification as a synthetic name for anonymous default export …
579 let name = jshelpers.getTextOfIdentifierOrLiteral(decl.name);
580 scope.module().addLocalExportEntry(decl, name, name);
591 … let localName = node.name ? jshelpers.getTextOfIdentifierOrLiteral(node.name) : "*default*";
596 if (!node.name) {
599 let name = jshelpers.getTextOfIdentifierOrLiteral(node.name!);
600 scope.module().addLocalExportEntry(node, name, name);
612 let funcId = <ts.Identifier>(node).name;
614 // unexported function declaration without name doesn't need to record hoisting.
617 // if function without name must has modifiers of 'export' & 'default'
644 if (node.name && ts.isIdentifier(node.name)) {
645 let funcName = jshelpers.getTextOfIdentifierOrLiteral(node.name);
657 let name: string = '';
660 name = getClassNameForConstructor(classNode);
667 let id = outerNode.name;
669 name = jshelpers.getTextOfIdentifierOrLiteral(id);
675 name = jshelpers.getTextOfIdentifierOrLiteral(outerNode.left);
679 let propName = outerNode.name;
681 name = jshelpers.getTextOfIdentifierOrLiteral(propName);
682 if (name == "__proto__") {
683 name = '';
688 if (ts.isIdentifier(node.name!)) {
689 name = jshelpers.getTextOfIdentifierOrLiteral(node.name);
694 (<FunctionScope>this.getScopeOfNode(node)).setFuncName(name);
696 if (name != '') {
698 if (funcNameMap.has(name)) {
699 let nums = <number>funcNameMap.get(name);
700 funcNameMap.set(name, ++nums);
702 funcNameMap.set(name, 1);
723 if (ts.isIdentifier(parameter.name)) {
724 … let name = jshelpers.getTextOfIdentifierOrLiteral(<ts.Identifier>parameter.name);
725 funcParams.push(new FunctionParameter(name, parameter.name));
727 this.recordPatternParameter(<ts.BindingPattern>parameter.name, funcParams);
736 let name: string = '';
743 if (ts.isIdentifier(bindingElement.name)) {
744 name = jshelpers.getTextOfIdentifierOrLiteral(bindingElement.name);
745 funcParams.push(new FunctionParameter(name, bindingElement.name));
747 let innerPattern = <ts.BindingPattern>bindingElement.name;
759 let declName = decl.name;
761 …// if variable share a same name with the parameter of its contained function, it should not be ho…
767 if (functionParameters[i].name == declName) {
803 if (decl.name == hoistDecls[i].name) {