@@ -89,10 +89,16 @@ module Symbol =
8989if e.IsEnum|| e.IsValueType|| hasAttribute< MeasureAnnotatedAbbreviationAttribute> e.Attributesthen Some()
9090else None
9191
92+ #if EXTENSIONTYPING
9293let (| Class | _ |) ( original : FSharpEntity , abbreviated : FSharpEntity , _ ) =
9394if abbreviated.IsClass
9495&& ( not abbreviated.IsStaticInstantiation|| original.IsFSharpAbbreviation) then Some()
96+ else None
97+ #else
98+ let (| Class | _ |) ( original : FSharpEntity , abbreviated : FSharpEntity , _ ) =
99+ if abbreviated.IsClass&& original.IsFSharpAbbreviationthen Some()
95100else None
101+ #endif
96102
97103let (| Record | _ |) ( e : FSharpEntity ) = if e.IsFSharpRecordthen Some() else None
98104let (| UnionType | _ |) ( e : FSharpEntity ) = if e.IsFSharpUnionthen Some() else None
@@ -108,17 +114,21 @@ module Symbol =
108114|| ( e.IsFSharp&& e.IsOpaque&& not e.IsFSharpModule&& not e.IsNamespace) then Some()
109115else None
110116
117+ #if EXTENSIONTYPING
111118let (| ProvidedType | _ |) ( e : FSharpEntity ) =
112119if ( e.IsProvided|| e.IsProvidedAndErased|| e.IsProvidedAndGenerated) && e.CompiledName= e.DisplayNamethen
113120 Some()
114121else None
122+ #endif
115123
116124let (| ByRef | _ |) ( e : FSharpEntity ) = if e.IsByRefthen Some() else None
117125let (| Array | _ |) ( e : FSharpEntity ) = if e.IsArrayTypethen Some() else None
118126let (| FSharpModule | _ |) ( entity : FSharpEntity ) = if entity.IsFSharpModulethen Some() else None
119127
120128let (| Namespace | _ |) ( entity : FSharpEntity ) = if entity.IsNamespacethen Some() else None
129+ #if EXTENSIONTYPING
121130let (| ProvidedAndErasedType | _ |) ( entity : FSharpEntity ) = if entity.IsProvidedAndErasedthen Some() else None
131+ #endif
122132let (| Enum | _ |) ( entity : FSharpEntity ) = if entity.IsEnumthen Some() else None
123133
124134let (| Tuple | _ |) ( ty : FSharpType option ) =