File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,43 +8,12 @@ namespace Semmle.Extraction.CIL.Entities
88 /// <summary>
99 /// Base class for all type containers (namespaces, types, methods).
1010 /// </summary>
11- public abstract class TypeContainer : IGenericContext , IExtractedEntity
11+ public abstract class TypeContainer : LabelledEntity , IGenericContext
1212 {
13- public Context Cx { get ; }
14-
15- protected TypeContainer ( Context cx )
13+ protected TypeContainer ( Context cx ) : base ( cx )
1614 {
17- Cx = cx ;
1815 }
1916
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-
4817 public abstract IEnumerable < Type > MethodParameters { get ; }
4918 public abstract IEnumerable < Type > TypeParameters { get ; }
5019 }
You can’t perform that action at this time.
0 commit comments