Skip to content

Commit b975b65

Browse files
author
申珊靛
committed
变量提取
1 parent bd3fcc8 commit b975b65

File tree

9 files changed

+219
-30
lines changed

9 files changed

+219
-30
lines changed

DataExtraction/SourceGraphExtractionUtils/GraphDataExtractor.cs

Lines changed: 196 additions & 30 deletions
Large diffs are not rendered by default.

DataExtraction/SourceGraphExtractionUtils/Utils/SourceGraph.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ private Action<JsonWriter, Dictionary<SyntaxNodeOrToken, int>> WriteNodeLabelsJs
139139
jWriter.WriteValue(GetNodeLabel(node, nodeLabelOverrides));
140140
}
141141
jWriter.WriteEndObject();
142+
142143
};
143144

144145
public string GetNodeType(SyntaxNodeOrToken node)

DataExtraction/output/compile-log.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[2022/5/28 0:18:19] Starting building all solutions in TestProject
2+
[2022/5/28 0:18:20] Restoring packages for: TestProject\TinyTest.sln
3+
[2022/5/28 0:18:20] In dir TestProject running nuget restore TinyTest.sln -NonInteractive -source https://api.nuget.org/v3/index.json
4+
[2022/5/28 0:18:26] Nuget restore took 0 minutes.
5+
[2022/5/28 0:18:37] Starting build of E:\资料\计算机\作品赛\bert_vm\graph-extra\DataExtraction\TestProject\TinyTest.sln
6+
[2022/5/28 0:18:39] Compilation completed for TinyTest, running extraction...
272 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
E:\资料\计算机\作品赛\bert_vm\graph-extra\DataExtraction\TestProject\Program.cs
2+
E:\资料\计算机\作品赛\bert_vm\graph-extra\DataExtraction\TestProject\obj\Debug\.NETFramework,Version=v4.5.2.AssemblyAttributes.cs
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[2022/5/28 0:18:42] Extracted 39 identifiers from E:\资料\计算机\作品赛\bert_vm\graph-extra\DataExtraction\TestProject\Program.cs.
505 Bytes
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
E:\资料\计算机\作品赛\bert_vm\graph-extra\DataExtraction\TestProject\TinyTest.csproj

DataExtraction/使用说明.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# 编译:
2+
3+
下载nuget.exe并添加环境变量,因为代码中有使用cmd调用nuget的process。
4+
5+
在vs中右键ExpressionDataExtractor,点击重新生成,即可得到目标程序ExpressionDataExtractor\bin\Debug\ExpressionDataExtractor.exe。
6+
7+
8+
# 调试:
9+
10+
右键ExpressionDataExtractor,设置为启动项目,则可以直接在vs里调试这个exe。
11+
12+
调试之前记得项目-调试-添加环境变量、确定绝对路径,并删除上次调试生成的输出文件。

0 commit comments

Comments
 (0)