Skip to content

Commit af524f0

Browse files
committed
Revert "C#: Temporary changes to model generator"
This reverts commit 0f6cea6bd6ecd61139dc09e7b68bf0b8ebc009fe.
1 parent 894f9ab commit af524f0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

csharp/ql/src/utils/modelconverter/ExtractNeutrals.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ import semmle.code.csharp.dataflow.ExternalFlow
1010
from string package, string type, string name, string signature, string kind, string provenance
1111
where
1212
neutralModel(package, type, name, signature, kind, provenance) and
13-
provenance.matches("%generated")
13+
not provenance.matches("%generated")
1414
select package, type, name, signature, kind, provenance order by
1515
package, type, name, signature, kind

csharp/ql/src/utils/modelconverter/ExtractSinks.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ from
1212
string input, string kind, string provenance
1313
where
1414
sinkModel(namespace, type, subtypes, name, signature, ext, input, kind, provenance) and
15-
provenance.matches("%generated")
15+
not provenance.matches("%generated")
1616
select namespace, type, subtypes, name, signature, ext, input, kind, provenance order by
1717
namespace, type, name, signature, input, kind

csharp/ql/src/utils/modelconverter/ExtractSources.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ from
1212
string output, string kind, string provenance
1313
where
1414
sourceModel(namespace, type, subtypes, name, signature, ext, output, kind, provenance) and
15-
provenance.matches("%generated")
15+
not provenance.matches("%generated")
1616
select namespace, type, subtypes, name, signature, ext, output, kind, provenance order by
1717
namespace, type, name, signature, output, kind

csharp/ql/src/utils/modelconverter/ExtractSummaries.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ from
1212
string input, string output, string kind, string provenance
1313
where
1414
summaryModel(namespace, type, subtypes, name, signature, ext, input, output, kind, provenance) and
15-
provenance.matches("%generated")
15+
not provenance.matches("%generated")
1616
select namespace, type, subtypes, name, signature, ext, input, output, kind, provenance order by
1717
namespace, type, name, signature, input, output, kind

misc/scripts/models-as-data/convert_extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def save(self, extensions):
8686
extensionTemplate = """extensions:
8787
{0}"""
8888
for entry in extensions:
89-
with open(self.extDir + "/generated/" + entry + self.modelFileExtension, "w") as f:
89+
with open(self.extDir + "/" + entry + self.modelFileExtension, "w") as f:
9090
f.write(extensionTemplate.format(extensions[entry]))
9191

9292
def run(self):

0 commit comments

Comments
 (0)