Skip to content

Commit

Permalink
Use 2.9.0 source code, commit hash 958f2354c4d83dbb0e7723d0a8079a0dfb…
Browse files Browse the repository at this point in the history
…c33f25
  • Loading branch information
wtfsck committed Sep 20, 2018
1 parent 370333e commit 3c27c68
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ internal DisplayClassInstanceFromParameter(ParameterSymbol parameter)
{
Debug.Assert((object)parameter != null);
Debug.Assert(parameter.Name.EndsWith("this", StringComparison.Ordinal) ||
parameter.Name.Equals("", StringComparison.Ordinal) || // unnamed
parameter.Name.Length == 0 || // unnamed
parameter.Name.Equals("value", StringComparison.Ordinal) || // display class instance passed to local function as parameter
GeneratedNames.GetKind(parameter.Name) == GeneratedNameKind.TransparentIdentifier);
this.Parameter = parameter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ internal override NamedTypeSymbol GetEffectiveBaseClass(ConsList<TypeParameterSy
internal override ImmutableArray<NamedTypeSymbol> GetInterfaces(ConsList<TypeParameterSymbol> inProgress)
{
var interfaces = _sourceTypeParameter.GetInterfaces(inProgress);
return this.TypeMap.SubstituteNamedTypes(InterfacesNoUseSiteDiagnostics()); // It looks like there is a bug on this line https://github.com/dotnet/roslyn/issues/23886
return this.TypeMap.SubstituteNamedTypes(interfaces);
}

private TypeMap TypeMap
Expand Down
4 changes: 2 additions & 2 deletions Core/ExpressionCompiler/PDB/MethodDebugInfo.Native.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ private static void ReadCSharpNativeImportsInfo(

var importStringGroups = CustomDebugInfoReader.GetCSharpGroupedImportStrings(
methodToken,
KeyValuePair.Create(reader, methodVersion),
KeyValuePairUtil.Create(reader, methodVersion),
getMethodCustomDebugInfo: (token, arg) => GetCustomDebugInfoBytes(arg.Key, token, arg.Value),
getMethodImportStrings: (token, arg) => GetImportStrings(arg.Key, token, arg.Value),
externAliasStrings: out externAliasStrings);
Expand Down Expand Up @@ -532,7 +532,7 @@ private static void ReadVisualBasicImportsDebugInfo(

var importStrings = CustomDebugInfoReader.GetVisualBasicImportStrings(
methodToken,
KeyValuePair.Create(reader, methodVersion),
KeyValuePairUtil.Create(reader, methodVersion),
(token, arg) => GetImportStrings(arg.Key, token, arg.Value));

if (importStrings.IsDefault)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

Namespace Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator

#Disable Warning RS0010
#Disable Warning CA1200 ' Avoid using cref tags with a prefix
''' <summary>
''' Causes all diagnostics related to <see cref="ObsoleteAttribute"/>
''' and <see cref="T:Windows.Foundation.MetadataDeprecatedAttribute"/>
''' to be suppressed.
''' </summary>
Friend NotInheritable Class SuppressDiagnosticsBinder
#Enable Warning RS0010
#Enable Warning CA1200 ' Avoid using cref tags with a prefix
Inherits Binder

Public Sub New(containingBinder As Binder)
Expand Down
4 changes: 2 additions & 2 deletions VisualBasic/BasicExpressionCompiler/Symbols/EEMethodSymbol.vb
Original file line number Diff line number Diff line change
Expand Up @@ -439,14 +439,14 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator
End Get
End Property

#Disable Warning RS0010
#Disable Warning CA1200 ' Avoid using cref tags with a prefix
''' <remarks>
''' The corresponding C# method,
''' <see cref="M:Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.EEMethodSymbol.GenerateMethodBody(Microsoft.CodeAnalysis.CSharp.TypeCompilationState,Microsoft.CodeAnalysis.DiagnosticBag)"/>,
''' invokes the <see cref="LocalRewriter"/> and the <see cref="LambdaRewriter"/> explicitly.
''' In VB, the caller (of this method) does that.
''' </remarks>
#Enable Warning RS0010
#Enable Warning CA1200 ' Avoid using cref tags with a prefix
Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As DiagnosticBag, <Out> ByRef Optional methodBodyBinder As Binder = Nothing) As BoundBlock
Dim body = _generateMethodBody(Me, diagnostics, _lazyResultProperties)
Debug.Assert(body IsNot Nothing)
Expand Down

0 comments on commit 3c27c68

Please sign in to comment.