File tree Expand file tree Collapse file tree 1 file changed +2
-33
lines changed Expand file tree Collapse file tree 1 file changed +2
-33
lines changed Original file line number Diff line number Diff line change @@ -8,43 +8,12 @@ namespace Semmle.Extraction.CIL.Entities
8
8
/// <summary>
9
9
/// Base class for all type containers (namespaces, types, methods).
10
10
/// </summary>
11
- public abstract class TypeContainer : IGenericContext , IExtractedEntity
11
+ public abstract class TypeContainer : LabelledEntity , IGenericContext
12
12
{
13
- public Context Cx { get ; }
14
-
15
- protected TypeContainer ( Context cx )
13
+ protected TypeContainer ( Context cx ) : base ( cx )
16
14
{
17
- Cx = cx ;
18
15
}
19
16
20
- public virtual Label Label { get ; set ; }
21
-
22
- public abstract void WriteId ( TextWriter trapFile ) ;
23
-
24
- public void WriteQuotedId ( TextWriter trapFile )
25
- {
26
- trapFile . Write ( "@\" " ) ;
27
- WriteId ( trapFile ) ;
28
- trapFile . Write ( IdSuffix ) ;
29
- trapFile . Write ( '\" ' ) ;
30
- }
31
-
32
- public abstract string IdSuffix { get ; }
33
-
34
- public void Extract ( Context cx2 ) { cx2 . Populate ( this ) ; }
35
-
36
- public abstract IEnumerable < IExtractionProduct > Contents { get ; }
37
-
38
- public override string ToString ( )
39
- {
40
- using var writer = new StringWriter ( ) ;
41
- WriteQuotedId ( writer ) ;
42
- return writer . ToString ( ) ;
43
- }
44
-
45
- public TrapStackBehaviour TrapStackBehaviour => TrapStackBehaviour . NoLabel ;
46
- public Location ReportingLocation => throw new NotImplementedException ( ) ;
47
-
48
17
public abstract IEnumerable < Type > MethodParameters { get ; }
49
18
public abstract IEnumerable < Type > TypeParameters { get ; }
50
19
}
You can’t perform that action at this time.
0 commit comments