Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ module VariableCapture {
}

private module CaptureInput implements Shared::InputSig<Location, BasicBlocks::BasicBlock> {
private import csharp as Cs
private import csharp as CS
private import semmle.code.csharp.controlflow.ControlFlowGraph as Cfg
private import TaintTrackingPrivate as TaintTrackingPrivate

Expand Down Expand Up @@ -391,7 +391,7 @@ module VariableCapture {
}
}

class Callable extends Cs::Callable {
class Callable extends CS::Callable {
predicate isConstructor() { this instanceof Constructor }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ private module StepsInput implements Impl::Private::StepsInputSig {
module SourceSinkInterpretationInput implements
Impl::Private::External::SourceSinkInterpretationInputSig
{
private import csharp as Cs
private import csharp as CS

class Element = Cs::Element;
class Element = CS::Element;

predicate sourceElement(
Element e, string output, string kind, Public::Provenance provenance, string model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,6 @@ string getToStringPrefix(Definition def) {
}

private module DataFlowIntegrationInput implements Impl::DataFlowIntegrationInputSig {
private import csharp as Cs
private import semmle.code.csharp.controlflow.BasicBlocks
private import codeql.util.Boolean

Expand Down
8 changes: 4 additions & 4 deletions csharp/ql/lib/utils/test/InlineMadTest.qll
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
private import csharp as Cs
private import csharp as CS
private import codeql.mad.test.InlineMadTest

private module InlineMadTestLang implements InlineMadTestLangSig {
class Callable = Cs::Callable;
class Callable = CS::Callable;

string getComment(Callable c) {
exists(Cs::CommentBlock block, Cs::Element after | after = block.getAfter() |
exists(CS::CommentBlock block, CS::Element after | after = block.getAfter() |
(
after = c or
after = c.(Cs::Accessor).getDeclaration()
after = c.(CS::Accessor).getDeclaration()
) and
result = block.getALine()
)
Expand Down
Loading