/// <summary> /// Return a scope's view of the argument type, where the scope's view is represented /// by a type viewer. /// [The identity function, except for dialects (e.g. Extensible Sing#) that allow /// extensions and differing views of types]. /// Defined as a static method to allow the type viewer to be null, /// meaning an identity-function view. /// </summary> public static TypeNode/*!*/ GetTypeView(TypeViewer typeViewer, TypeNode/*!*/ type) { return typeViewer == null ? type.EffectiveTypeNode : typeViewer.GetTypeView(type); }