Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removing useless change.
  • Loading branch information
thaystg committed Jul 10, 2021
commit 43257f33ac46b178b8ef5bd2f2007b857700b767
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ private class FindVariableNMethodCall : CSharpSyntaxWalker
public List<InvocationExpressionSyntax> methodCall = new List<InvocationExpressionSyntax>();
public List<MemberAccessExpressionSyntax> memberAccesses = new List<MemberAccessExpressionSyntax>();
public List<object> argValues = new List<object>();
public Dictionary<string, string> memberAccessToParamName = new Dictionary<string, string>();
public Dictionary<string, JObject> memberAccessValues = new Dictionary<string, JObject>();
public Dictionary<string, string> methodCallToParamName = new Dictionary<string, string>();
private int visitCount;

public void VisitInternal(SyntaxNode node)
Expand Down Expand Up @@ -73,6 +71,9 @@ public override void Visit(SyntaxNode node)

public SyntaxTree ReplaceVars(SyntaxTree syntaxTree, IEnumerable<JObject> ma_values, IEnumerable<JObject> id_values, IEnumerable<JObject> method_values)
{
var memberAccessToParamName = new Dictionary<string, string>();
var methodCallToParamName = new Dictionary<string, string>();

CompilationUnitSyntax root = syntaxTree.GetCompilationUnitRoot();

// 1. Replace all this.a occurrences with this_a_ABDE
Expand Down