File tree Expand file tree Collapse file tree 32 files changed +59
-148
lines changed Expand file tree Collapse file tree 32 files changed +59
-148
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,13 @@ codeql_csharp_library(
7
7
name = "Semmle.Extraction.CSharp" ,
8
8
srcs = glob ([
9
9
"_Base/**/*.cs" ,
10
+ "CodeAnalysisExtensions/**/*.cs" ,
10
11
"Comments/**/*.cs" ,
11
12
"Entities/**/*.cs" ,
12
13
"Extractor/**/*.cs" ,
13
14
"Kinds/**/*.cs" ,
14
15
"Populators/**/*.cs" ,
16
+ "Trap/**/*.cs" ,
15
17
"*.cs" ,
16
18
]),
17
19
allow_unsafe_blocks = True ,
Original file line number Diff line number Diff line change 3
3
using System . Linq ;
4
4
using Microsoft . CodeAnalysis ;
5
5
6
- namespace Semmle . Extraction
6
+ namespace Semmle . Extraction . CSharp
7
7
{
8
8
public static class LocationExtensions
9
9
{
File renamed without changes.
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ namespace Semmle.Extraction
3
3
/// <summary>
4
4
/// A factory for creating cached entities.
5
5
/// </summary>
6
- public abstract class CachedEntityFactory < TInit , TEntity > where TEntity : CachedEntity
6
+ public abstract class CachedEntityFactory < TInit , TEntity > where TEntity : Semmle . Extraction . CachedEntity
7
7
{
8
8
/// <summary>
9
9
/// Initializes the entity, but does not generate any trap code.
10
10
/// </summary>
11
- public abstract TEntity Create ( Context cx , TInit init ) ;
11
+ public abstract TEntity Create ( Semmle . Extraction . Context cx , TInit init ) ;
12
12
}
13
13
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace Semmle.Extraction
9
9
///
10
10
/// The <see cref="Entity.Id"/> property is used as label in caching.
11
11
/// </summary>
12
- public abstract class CachedEntity : LabelledEntity
12
+ public abstract class CachedEntity : CSharp . LabelledEntity
13
13
{
14
14
protected CachedEntity ( Context context ) : base ( context )
15
15
{
@@ -62,7 +62,7 @@ public override bool Equals(object? obj)
62
62
return other ? . GetType ( ) == GetType ( ) && Equals ( other . Symbol , Symbol ) ;
63
63
}
64
64
65
- public override TrapStackBehaviour TrapStackBehaviour => TrapStackBehaviour . NoLabel ;
65
+ public override CSharp . TrapStackBehaviour TrapStackBehaviour => CSharp . TrapStackBehaviour . NoLabel ;
66
66
}
67
67
68
68
/// <summary>
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . IO ;
3
3
using Microsoft . CodeAnalysis ;
4
+ using Semmle . Extraction . CSharp ;
4
5
5
6
namespace Semmle . Extraction
6
7
{
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ namespace Semmle.Extraction
5
5
/// <summary>
6
6
/// An entity which has a default "*" ID assigned to it.
7
7
/// </summary>
8
- public abstract class FreshEntity : UnlabelledEntity
8
+ public abstract class FreshEntity : CSharp . UnlabelledEntity
9
9
{
10
10
protected FreshEntity ( Context cx ) : base ( cx )
11
11
{
@@ -33,6 +33,6 @@ public string DebugContents
33
33
34
34
public override Microsoft . CodeAnalysis . Location ? ReportingLocation => null ;
35
35
36
- public override TrapStackBehaviour TrapStackBehaviour => TrapStackBehaviour . NoLabel ;
36
+ public override CSharp . TrapStackBehaviour TrapStackBehaviour => CSharp . TrapStackBehaviour . NoLabel ;
37
37
}
38
38
}
Original file line number Diff line number Diff line change 1
1
using System . IO ;
2
2
using Microsoft . CodeAnalysis ;
3
3
4
- namespace Semmle . Extraction
4
+ namespace Semmle . Extraction . CSharp
5
5
{
6
6
/// <summary>
7
7
/// Any program entity which has a corresponding label in the trap file.
Original file line number Diff line number Diff line change 1
- namespace Semmle . Extraction
1
+ namespace Semmle . Extraction . CSharp
2
2
{
3
- public abstract class LabelledEntity : Entity
3
+ public abstract class LabelledEntity : Semmle . Extraction . Entity
4
4
{
5
- protected LabelledEntity ( Context cx ) : base ( cx )
5
+ protected LabelledEntity ( Semmle . Extraction . Context cx ) : base ( cx )
6
6
{
7
7
}
8
8
}
Original file line number Diff line number Diff line change 1
- namespace Semmle . Extraction
1
+ namespace Semmle . Extraction . CSharp
2
2
{
3
3
public abstract class UnlabelledEntity : Entity
4
4
{
5
- protected UnlabelledEntity ( Context cx ) : base ( cx )
5
+ protected UnlabelledEntity ( Extraction . Context cx ) : base ( cx )
6
6
{
7
7
cx . AddFreshLabel ( this ) ;
8
8
}
You can’t perform that action at this time.
0 commit comments