• Home
  • Raw
  • Download

Lines Matching full:if

97         if (!this.class2Ctor.has(node)) {
104if (!this.isTsFile || childNode!.parent == undefined || childNode.parent.kind != node.kind) {
115 if (this.syntaxCheckStatus) {
133 if (hasExportKeywordModifier(childNode)) {
134 if (!CmdOptions.isModules()) {
143 if (this.recordType) {
173 if (hasExportKeywordModifier(childNode)) {
174 if (!CmdOptions.isModules()) {
181 if (this.recordType) {
188 if (this.recordType) {
194 if (this.recordType) {
204 if (!CmdOptions.isModules()) {
210 if (this.recordType) {
216 if (!CmdOptions.isModules()) {
222 if (this.recordType) {
228 if (!CmdOptions.isModules()) {
234 if (this.recordType) {
240 if (hasExportKeywordModifier(childNode)) {
241 if (!CmdOptions.isModules()) {
246 if (this.recordType) {
262 if (!ctor) {
289 if (parent) {
292if ((<ts.VariableDeclaration>parent).parent.parent.kind == ts.SyntaxKind.VariableStatement) {
298 if (declKind == VarDeclarationKind.VAR) {
304 if (declScope) {
307 if ((decl instanceof LetDecl || decl instanceof ConstDecl)) {
313 if (nearestDefLexicalScope instanceof LoopScope) {
315 if (tmp == nearestDefLexicalScope) {
323 if (needCreateLoopEnv) {
331 if (name == MandatoryArguments) {
345 if (parent.parent.kind == ts.SyntaxKind.CatchClause) {
363 if (ts.isVariableDeclaration(parent) &&
366 } else if (ts.isBindingElement(parent) &&
380 if (!ts.isStringLiteral(node.moduleSpecifier)) {
384 if (node.moduleSpecifier) {
390 if (node.importClause) {
394 if (importClause.name) {
403 if (importClause.namedBindings) {
406 if (ts.isNamespaceImport(namedBindings)) {
412 if (ts.isNamedImports(namedBindings)) {
431 if (origNode.moduleSpecifier) {
432 if (!ts.isStringLiteral(origNode.moduleSpecifier)) {
440 if (origNode.exportClause) {
443 if (ts.isNamespaceExport(namedBindings)) {
447 if (ts.isNamedExports(namedBindings)) {
461 if (!ts.isStringLiteral(moduleSpecifier)) {
469 if (ts.isNamespaceImport(namedBindings)) {
473 } else if (ts.isNamedImports(namedBindings)) {
474 if (namedBindings.elements.length == 0) {
492 if (importClause.name) {
497 if (importClause.namedBindings) {
504 if (!(scope instanceof ModuleScope)) {
510 if (node.importClause) {
520 if (node.moduleSpecifier) {
523 if (node.exportClause) {
525 if (ts.isNamespaceExport(namedBindings)) {
528 } else if (ts.isNamedExports(namedBindings)) {
529 if (namedBindings.elements.length == 0) {
545 } else if (node.exportClause && ts.isNamedExports(node.exportClause)) {
559 if (!(scope instanceof ModuleScope)) {
586 if (hasDefaultKeywordModifier(node)) {
596 if (!node.name) {
613 if (!funcId && !isExport) {
617 // if function without name must has modifiers of 'export' & 'default'
623 if (scope instanceof GlobalScope || scope instanceof ModuleScope) {
625 } else if (scope instanceof LocalScope) {
627if ((hoistScope instanceof FunctionScope) && isFunctionLikeDeclaration(node.parent.parent)) {
633 if (need2AddDecls) {
640 if (!ts.isFunctionExpression(node) && !ts.isMethodDeclaration(node)) {
644 if (node.name && ts.isIdentifier(node.name)) {
658 if (ts.isConstructorDeclaration(node)) {
662 if (isAnonymousFunctionDefinition(node)) {
665 if (ts.isVariableDeclaration(outerNode)) {
668 if (ts.isIdentifier(id)) {
671 } else if (ts.isBinaryExpression(outerNode)) {
673if (outerNode.operatorToken.kind == ts.SyntaxKind.EqualsToken && ts.isIdentifier(outerNode.left)) {
677 } else if (ts.isPropertyAssignment(outerNode)) {
680if (ts.isIdentifier(propName) || ts.isStringLiteral(propName) || ts.isNumericLiteral(propName)) {
682 if (name == "__proto__") {
688 if (ts.isIdentifier(node.name!)) {
696 if (name != '') {
698 if (funcNameMap.has(name)) {
713 if (parameters) {
716 if (parameter.initializer || this.isRestParameter(parameter)) {
719 if (lengthFlag) {
723 if (ts.isIdentifier(parameter.name)) {
738 if (ts.isOmittedExpression(bindingElement)) {
743 if (ts.isIdentifier(bindingElement.name)) {
761 …// if variable share a same name with the parameter of its contained function, it should not be ho…
762 if (scope instanceof FunctionScope) {
765 if (functionParameters) {
767 if (functionParameters[i].name == declName) {
775 if (isGlobalIdentifier(declName) && (scope instanceof GlobalScope)) {
796 if (!this.hoistMap.has(scope)) {
803 if (decl.name == hoistDecls[i].name) {
804 if (decl instanceof FuncDecl) {