Skip to content

Instantly share code, notes, and snippets.

@jcouv
Created May 17, 2019 01:35
Show Gist options
  • Save jcouv/7abbd126e7f8d6fb3ed46ac425af22bf to your computer and use it in GitHub Desktop.
Save jcouv/7abbd126e7f8d6fb3ed46ac425af22bf to your computer and use it in GitHub Desktop.
class Outer<T> where T : Outer<T>?
{
    void M0(Outer<T> x0)
    {
        T y0 = x0 as T;
        y0?.ToString();
        y0.ToString();
    }
}
 	Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamedTypeSymbol.MakeTypeParameterConstraints(Microsoft.CodeAnalysis.DiagnosticBag diagnostics) Line 301	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamedTypeSymbol.GetTypeParameterConstraintClause(int ordinal) Line 239	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.SourceTypeParameterSymbol.GetTypeParameterConstraintClause() Line 523	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.SourceTypeParameterSymbol.GetDeclaredConstraints() Line 540	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.SourceTypeParameterSymbol.HasReferenceTypeConstraint.get() Line 481	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.TypeParameterSymbol.IsReferenceType.get() Line 499	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.TypeWithAnnotations.TypeWithAnnotations(Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol defaultType, Microsoft.CodeAnalysis.CSharp.NullableAnnotation nullableAnnotation, Microsoft.CodeAnalysis.CSharp.Symbols.TypeWithAnnotations.Extensions extensions) Line 50	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.TypeWithAnnotations.CreateNonLazyType(Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol typeSymbol, Microsoft.CodeAnalysis.CSharp.NullableAnnotation nullableAnnotation, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CustomModifier> customModifiers) Line 151	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.TypeWithAnnotations.Create(Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol typeSymbol, Microsoft.CodeAnalysis.CSharp.NullableAnnotation nullableAnnotation, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CustomModifier> customModifiers) Line 99	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.TypeWithAnnotations.Create(bool isNullableEnabled, Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol typeSymbol, bool isAnnotated, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CustomModifier> customModifiers) Line 76	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.NamespaceOrTypeOrAliasSymbolWithAnnotations.CreateUnannotated(bool isNullableEnabled, Microsoft.CodeAnalysis.CSharp.Symbol symbol) Line 55	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindNonGenericSimpleNamespaceOrTypeOrAliasSymbol(Microsoft.CodeAnalysis.CSharp.Syntax.IdentifierNameSyntax node, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Roslyn.Utilities.ConsList<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol> basesBeingResolved, bool suppressUseSiteDiagnostics, Microsoft.CodeAnalysis.CSharp.Symbols.NamespaceOrTypeSymbol qualifierOpt) Line 810	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeOrAliasSymbol(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax syntax, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Roslyn.Utilities.ConsList<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol> basesBeingResolved, bool suppressUseSiteDiagnostics) Line 372	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindTypeOrAlias(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax syntax, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Roslyn.Utilities.ConsList<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol> basesBeingResolved) Line 278	C#
>	Microsoft.CodeAnalysis.CSharp.Binder.BindType(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax syntax, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Roslyn.Utilities.ConsList<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol> basesBeingResolved) Line 258	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindTypeArgument(Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax typeArgument, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Roslyn.Utilities.ConsList<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol> basesBeingResolved) Line 1138	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindTypeArguments(Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax> typeArguments, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Roslyn.Utilities.ConsList<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol> basesBeingResolved) Line 1127	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindGenericSimpleNamespaceOrTypeOrAliasSymbol(Microsoft.CodeAnalysis.CSharp.Syntax.GenericNameSyntax node, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Roslyn.Utilities.ConsList<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol> basesBeingResolved, Microsoft.CodeAnalysis.CSharp.Symbols.NamespaceOrTypeSymbol qualifierOpt) Line 1021	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeOrAliasSymbol(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax syntax, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Roslyn.Utilities.ConsList<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol> basesBeingResolved, bool suppressUseSiteDiagnostics) Line 375	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindTypeOrAlias(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax syntax, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Roslyn.Utilities.ConsList<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol> basesBeingResolved) Line 278	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindType(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax syntax, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Roslyn.Utilities.ConsList<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol> basesBeingResolved) Line 258	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeOrAliasSymbol.__bindNullable|889_1(ref Microsoft.CodeAnalysis.CSharp.Binder.<>c__DisplayClass889_0 value) Line 448	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeOrAliasSymbol(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax syntax, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Roslyn.Utilities.ConsList<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol> basesBeingResolved, bool suppressUseSiteDiagnostics) Line 366	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindTypeOrAlias(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax syntax, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Roslyn.Utilities.ConsList<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol> basesBeingResolved) Line 278	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindTypeOrAliasOrUnmanagedKeyword(Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax syntax, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, out bool isUnmanaged) Line 138	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindTypeOrUnmanagedKeyword(Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax syntax, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, out bool isUnmanaged) Line 54	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindTypeParameterConstraints(Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterSyntax typeParameterSyntax, Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterConstraintClauseSyntax constraintClauseSyntax, bool isForOverride, Microsoft.CodeAnalysis.DiagnosticBag diagnostics) Line 241	C#
 	Microsoft.CodeAnalysis.CSharp.Binder.BindTypeParameterConstraintClauses(Microsoft.CodeAnalysis.CSharp.Symbol containingSymbol, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CSharp.Symbols.TypeParameterSymbol> typeParameters, Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterListSyntax typeParameterList, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterConstraintClauseSyntax> clauses, ref System.Collections.Generic.IReadOnlyDictionary<Microsoft.CodeAnalysis.CSharp.Symbols.TypeParameterSymbol, bool> isValueTypeOverride, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, bool isForOverride) Line 65	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamedTypeSymbol.MakeTypeParameterConstraints(Microsoft.CodeAnalysis.DiagnosticBag diagnostics) Line 301	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamedTypeSymbol.GetTypeParameterConstraintClause(int ordinal) Line 239	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.SourceTypeParameterSymbol.GetTypeParameterConstraintClause() Line 523	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.SourceTypeParameterSymbol.GetDeclaredConstraints() Line 540	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.SourceTypeParameterSymbol.HasReferenceTypeConstraint.get() Line 481	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.TypeParameterSymbol.IsReferenceType.get() Line 499	C#
 	Microsoft.CodeAnalysis.CSharp.Symbols.TypeWithAnnotations.TypeWithAnnotations(Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol defaultType, Microsoft.CodeAnalysis.CSharp.NullableAnnotation nullableAnnotation, Microsoft.CodeAnalysis.CSharp.Symbols.TypeWithAnnotations.Extensions extensions) Line 50	C#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment