Skip to content

dqkqd/c-sharp-ref-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Find modified identifiers in a function

Installation

pip install .

Test

python main.py

Sample code in main.py

using System;

namespace HelloWorld
{
  class Program
  {
    static void ModifyVariable(int x, int y) { x += 1; y += 2}
    static void ModifyVariableNested(int x) { int y = 2; ModifyVariable(x, y); }
    static void Main(string[] args)
    {
      Console.WriteLine("Hello World!");    
   }
  }
}

Result

--------------------------------------------------
Function location: ModifyVariable, line 6, column 30
Params location:
 x, line 6, column 36
 y, line 6, column 43
Modified vars location:
 x, line 6, column 48
 y, line 6, column 56
--------------------------------------------------
Function location: ModifyVariableNested, line 7, column 36
Params location:
 x, line 7, column 42
Modified vars location:
 x, line 7, column 73

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages