784d039b33d03e76f218869c235ae76bcca2ea8c
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 5
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Change Parameter Type | 3 | ||
| Change Parameter Type name : String to qname : QualifiedName in method private getEnum(qname QualifiedName) : EnumType in class com.google.javascript.jscomp.GlobalTypeInfo.Scope | From | To | |
| Change Parameter Type namedType : JSType to rawType : RawNominalType in method private getNominalTypeHelper(rawType RawNominalType, n Node, registry DeclaredTypeRegistry, outerTypeParameters ImmutableList<String>) : JSType in class com.google.javascript.jscomp.newtypes.JSTypeCreatorFromJSDoc | From | To | |
| Change Parameter Type functionScope : Scope to functionScope : DeclaredTypeRegistry in method public Declaration(simpleType JSType, typedef Typedef, namespaceLit NamespaceLit, enumType EnumType, functionScope DeclaredTypeRegistry, nominal RawNominalType, isFormal boolean, isTypeVar boolean, isConstant boolean, isFromExterns boolean, isForwardDeclaration boolean) in class com.google.javascript.jscomp.newtypes.Declaration | From | To | |
| Rename Variable | 1 | ||
| Rename Variable namedType : JSType to decl : Declaration in method private lookupTypeByName(name String, n Node, registry DeclaredTypeRegistry, outerTypeParameters ImmutableList<String>) : JSType in class com.google.javascript.jscomp.newtypes.JSTypeCreatorFromJSDoc | From | To | |
| Change Return Type | 1 | ||
| Change Return Type Scope to DeclaredTypeRegistry in method public getFunctionScope() : DeclaredTypeRegistry in class com.google.javascript.jscomp.newtypes.Declaration | From | To | |
| Move Class | 1 | ||
| Move Class com.google.javascript.jscomp.GlobalTypeInfo.Scope.Declaration moved to com.google.javascript.jscomp.newtypes.Declaration | From | To | |
| Parameterize Variable | 1 | ||
| Parameterize Variable typeName : String to name : String in method private lookupTypeByName(name String, n Node, registry DeclaredTypeRegistry, outerTypeParameters ImmutableList<String>) : JSType in class com.google.javascript.jscomp.newtypes.JSTypeCreatorFromJSDoc | From | To | |
| Change Variable Type | 1 | ||
| Change Variable Type namedType : JSType to decl : Declaration in method private lookupTypeByName(name String, n Node, registry DeclaredTypeRegistry, outerTypeParameters ImmutableList<String>) : JSType in class com.google.javascript.jscomp.newtypes.JSTypeCreatorFromJSDoc | From | To | |
| Extract Variable | 1 | ||
| Extract Variable props : QualifiedName in method public getDeclaration(qname QualifiedName, includeTypes boolean) : Declaration from class com.google.javascript.jscomp.GlobalTypeInfo.Scope | From | To | |
| Change Attribute Type | 1 | ||
| Change Attribute Type functionScope : Scope to functionScope : DeclaredTypeRegistry in class com.google.javascript.jscomp.newtypes.Declaration | From | To | |
| Extract Method | 3 | ||
| Extract Method public getDeclaration(qname QualifiedName, includeTypes boolean) : Declaration extracted from private getNominalType(qname QualifiedName) : RawNominalType in class com.google.javascript.jscomp.GlobalTypeInfo.Scope | From | To | |
| Extract Method public getDeclaration(qname QualifiedName, includeTypes boolean) : Declaration extracted from public getEnum(name String) : EnumType in class com.google.javascript.jscomp.GlobalTypeInfo.Scope | From | To | |
| Extract Method private lookupTypeByName(name String, n Node, registry DeclaredTypeRegistry, outerTypeParameters ImmutableList<String>) : JSType extracted from private getNamedTypeHelper(n Node, registry DeclaredTypeRegistry, outerTypeParameters ImmutableList<String>) : JSType in class com.google.javascript.jscomp.newtypes.JSTypeCreatorFromJSDoc | From | To | |
| Rename Parameter | 2 | ||
| Rename Parameter name : String to qname : QualifiedName in method private getEnum(qname QualifiedName) : EnumType in class com.google.javascript.jscomp.GlobalTypeInfo.Scope | From | To | |
| Rename Parameter namedType : JSType to rawType : RawNominalType in method private getNominalTypeHelper(rawType RawNominalType, n Node, registry DeclaredTypeRegistry, outerTypeParameters ImmutableList<String>) : JSType in class com.google.javascript.jscomp.newtypes.JSTypeCreatorFromJSDoc | From | To |