59e7c63bc6b05ccf6cd430e7322c8d6119bf4f47
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 2
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Method | 2 | ||
| Rename Method private visitFunction(node Node, parent Node) : void renamed to private createFunctionInfo(node Node, parent Node) : FunctionInformation in class com.google.javascript.jscomp.PureFunctionIdentifier.FunctionAnalyzer | From | To | |
| Rename Method private connectDefs(sideEffectGraph LinkedDirectedGraph<FunctionInformation,Node>, def Node, callSite Node, graphNode DiGraphNode<FunctionInformation,Node>) : void renamed to private getGoogCacheCallableExpression(cacheCall Cache) : Iterable<Node> in class com.google.javascript.jscomp.PureFunctionIdentifier | From | To | |
| Inline Method | 1 | ||
| Inline Method private setMask(mask int, value boolean) : void inlined to package FunctionInformation(extern boolean) in class com.google.javascript.jscomp.PureFunctionIdentifier.FunctionInformation | From | To | |
| Rename Variable | 2 | ||
| Rename Variable defs : Collection<Definition> to possibleSideEffects : List<FunctionInformation> in method private propagateSideEffects() : void in class com.google.javascript.jscomp.PureFunctionIdentifier | From | To | |
| Rename Variable def : Definition to sideEffectNode : FunctionInformation in method private propagateSideEffects() : void in class com.google.javascript.jscomp.PureFunctionIdentifier | From | To | |
| Change Return Type | 2 | ||
| Change Return Type void to FunctionInformation in method private createFunctionInfo(node Node, parent Node) : FunctionInformation in class com.google.javascript.jscomp.PureFunctionIdentifier.FunctionAnalyzer | From | To | |
| Change Return Type void to Iterable<Node> in method private getGoogCacheCallableExpression(cacheCall Cache) : Iterable<Node> in class com.google.javascript.jscomp.PureFunctionIdentifier | From | To | |
| Parameterize Variable | 1 | ||
| Parameterize Variable info : FunctionInformation to cacheCall : Cache in method private getGoogCacheCallableExpression(cacheCall Cache) : Iterable<Node> in class com.google.javascript.jscomp.PureFunctionIdentifier | From | To | |
| Change Variable Type | 4 | ||
| Change Variable Type info : FunctionInformation to cacheCall : Cache in method private getGoogCacheCallableExpression(cacheCall Cache) : Iterable<Node> in class com.google.javascript.jscomp.PureFunctionIdentifier | From | To | |
| Change Variable Type def : Definition to sideEffectNode : FunctionInformation in method private propagateSideEffects() : void in class com.google.javascript.jscomp.PureFunctionIdentifier | From | To | |
| Change Variable Type sideEffectGraph : LinkedDirectedGraph<FunctionInformation,Node> to sideEffectGraph : LinkedDirectedGraph<FunctionInformation,CallSitePropagationInfo> in method private propagateSideEffects() : void in class com.google.javascript.jscomp.PureFunctionIdentifier | From | To | |
| Change Variable Type defs : Collection<Definition> to possibleSideEffects : List<FunctionInformation> in method private propagateSideEffects() : void in class com.google.javascript.jscomp.PureFunctionIdentifier | From | To | |
| Extract Method | 7 | ||
| Extract Method package setMask(mask int) : void extracted from package setTaintsReturn() : void in class com.google.javascript.jscomp.PureFunctionIdentifier.FunctionInformation | From | To | |
| Extract Method package setMask(mask int) : void extracted from package setTaintsThis() : void in class com.google.javascript.jscomp.PureFunctionIdentifier.FunctionInformation | From | To | |
| Extract Method package setMask(mask int) : void extracted from package FunctionInformation(extern boolean) in class com.google.javascript.jscomp.PureFunctionIdentifier.FunctionInformation | From | To | |
| Extract Method package setMask(mask int) : void extracted from package setTaintsGlobalState() : void in class com.google.javascript.jscomp.PureFunctionIdentifier.FunctionInformation | From | To | |
| Extract Method package setMask(mask int) : void extracted from package setIsPure() : void in class com.google.javascript.jscomp.PureFunctionIdentifier.FunctionInformation | From | To | |
| Extract Method package setMask(mask int) : void extracted from package setTaintsArguments() : void in class com.google.javascript.jscomp.PureFunctionIdentifier.FunctionInformation | From | To | |
| Extract Method package setMask(mask int) : void extracted from package setFunctionThrows() : void in class com.google.javascript.jscomp.PureFunctionIdentifier.FunctionInformation | From | To | |
| Change Attribute Type | 1 | ||
| Change Attribute Type graphNode : DiGraphNode<FunctionInformation,Node> to graphNode : DiGraphNode<FunctionInformation,CallSitePropagationInfo> in class com.google.javascript.jscomp.PureFunctionIdentifier.FunctionInformation | From | To | |
| Rename Parameter | 2 | ||
| Rename Parameter n : Node to definitionRValue : Node in method private isSupportedFunctionDefinition(definitionRValue Node) : boolean in class com.google.javascript.jscomp.PureFunctionIdentifier | From | To | |
| Rename Parameter defNode : Node to functionNode : Node in method private updateFlagsForDef(callNode Node, functionNode Node, flags Node.SideEffectFlags) : void in class com.google.javascript.jscomp.PureFunctionIdentifier | From | To |