repo_name
stringclasses 6
values | pr_number
int64 512
78.9k
| pr_title
stringlengths 3
144
| pr_description
stringlengths 0
30.3k
| author
stringlengths 2
21
| date_created
timestamp[ns, tz=UTC] | date_merged
timestamp[ns, tz=UTC] | previous_commit
stringlengths 40
40
| pr_commit
stringlengths 40
40
| query
stringlengths 17
30.4k
| filepath
stringlengths 9
210
| before_content
stringlengths 0
112M
| after_content
stringlengths 0
112M
| label
int64 -1
1
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dotnet/roslyn | 55,424 | Fix matchnamespacetofolder analyzer/codefix | Fix issues where the namespace for documents at the root would be incorrect.
Fixes: #54757 | ryzngard | 2021-08-05T00:29:53Z | 2021-08-05T06:48:11Z | cbd0fb83e317c7b2c33343b8d8d92b9cf2303db8 | 11776736ea4447733d3b11850c211d998c39b01d | Fix matchnamespacetofolder analyzer/codefix. Fix issues where the namespace for documents at the root would be incorrect.
Fixes: #54757 | ./src/Compilers/Core/Portable/Symbols/IPropertySymbol.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis
{
/// <summary>
/// Represents a property or indexer.
/// </summary>
/// <remarks>
/// This interface is reserved for implementation by its associated APIs. We reserve the right to
/// change it in the future.
/// </remarks>
public interface IPropertySymbol : ISymbol
{
/// <summary>
/// Returns whether the property is really an indexer.
/// </summary>
bool IsIndexer { get; }
/// <summary>
/// True if this is a read-only property; that is, a property with no set accessor.
/// </summary>
bool IsReadOnly { get; }
/// <summary>
/// True if this is a write-only property; that is, a property with no get accessor.
/// </summary>
bool IsWriteOnly { get; }
/// <summary>
/// Returns true if this property is an auto-created WithEvents property that takes place of
/// a field member when the field is marked as WithEvents.
/// </summary>
bool IsWithEvents { get; }
/// <summary>
/// Returns true if this property returns by reference.
/// </summary>
bool ReturnsByRef { get; }
/// <summary>
/// Returns true if this property returns by reference a readonly variable.
/// </summary>
bool ReturnsByRefReadonly { get; }
/// <summary>
/// Returns the RefKind of the property.
/// </summary>
RefKind RefKind { get; }
/// <summary>
/// The type of the property.
/// </summary>
ITypeSymbol Type { get; }
NullableAnnotation NullableAnnotation { get; }
/// <summary>
/// The parameters of this property. If this property has no parameters, returns
/// an empty list. Parameters are only present on indexers, or on some properties
/// imported from a COM interface.
/// </summary>
ImmutableArray<IParameterSymbol> Parameters { get; }
/// <summary>
/// The 'get' accessor of the property, or null if the property is write-only.
/// </summary>
IMethodSymbol? GetMethod { get; }
/// <summary>
/// The 'set' accessor of the property, or null if the property is read-only.
/// </summary>
IMethodSymbol? SetMethod { get; }
/// <summary>
/// The original definition of the property. If the property is constructed from another
/// symbol by type substitution, OriginalDefinition gets the original symbol, as it was
/// defined in source or metadata.
/// </summary>
new IPropertySymbol OriginalDefinition { get; }
/// <summary>
/// Returns the overridden property, or null.
/// </summary>
IPropertySymbol? OverriddenProperty { get; }
/// <summary>
/// Returns interface properties explicitly implemented by this property.
/// </summary>
/// <remarks>
/// Properties imported from metadata can explicitly implement more than one property.
/// </remarks>
ImmutableArray<IPropertySymbol> ExplicitInterfaceImplementations { get; }
/// <summary>
/// Custom modifiers associated with the ref modifier, or an empty array if there are none.
/// </summary>
ImmutableArray<CustomModifier> RefCustomModifiers { get; }
/// <summary>
/// The list of custom modifiers, if any, associated with the type of the property.
/// </summary>
ImmutableArray<CustomModifier> TypeCustomModifiers { get; }
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis
{
/// <summary>
/// Represents a property or indexer.
/// </summary>
/// <remarks>
/// This interface is reserved for implementation by its associated APIs. We reserve the right to
/// change it in the future.
/// </remarks>
public interface IPropertySymbol : ISymbol
{
/// <summary>
/// Returns whether the property is really an indexer.
/// </summary>
bool IsIndexer { get; }
/// <summary>
/// True if this is a read-only property; that is, a property with no set accessor.
/// </summary>
bool IsReadOnly { get; }
/// <summary>
/// True if this is a write-only property; that is, a property with no get accessor.
/// </summary>
bool IsWriteOnly { get; }
/// <summary>
/// Returns true if this property is an auto-created WithEvents property that takes place of
/// a field member when the field is marked as WithEvents.
/// </summary>
bool IsWithEvents { get; }
/// <summary>
/// Returns true if this property returns by reference.
/// </summary>
bool ReturnsByRef { get; }
/// <summary>
/// Returns true if this property returns by reference a readonly variable.
/// </summary>
bool ReturnsByRefReadonly { get; }
/// <summary>
/// Returns the RefKind of the property.
/// </summary>
RefKind RefKind { get; }
/// <summary>
/// The type of the property.
/// </summary>
ITypeSymbol Type { get; }
NullableAnnotation NullableAnnotation { get; }
/// <summary>
/// The parameters of this property. If this property has no parameters, returns
/// an empty list. Parameters are only present on indexers, or on some properties
/// imported from a COM interface.
/// </summary>
ImmutableArray<IParameterSymbol> Parameters { get; }
/// <summary>
/// The 'get' accessor of the property, or null if the property is write-only.
/// </summary>
IMethodSymbol? GetMethod { get; }
/// <summary>
/// The 'set' accessor of the property, or null if the property is read-only.
/// </summary>
IMethodSymbol? SetMethod { get; }
/// <summary>
/// The original definition of the property. If the property is constructed from another
/// symbol by type substitution, OriginalDefinition gets the original symbol, as it was
/// defined in source or metadata.
/// </summary>
new IPropertySymbol OriginalDefinition { get; }
/// <summary>
/// Returns the overridden property, or null.
/// </summary>
IPropertySymbol? OverriddenProperty { get; }
/// <summary>
/// Returns interface properties explicitly implemented by this property.
/// </summary>
/// <remarks>
/// Properties imported from metadata can explicitly implement more than one property.
/// </remarks>
ImmutableArray<IPropertySymbol> ExplicitInterfaceImplementations { get; }
/// <summary>
/// Custom modifiers associated with the ref modifier, or an empty array if there are none.
/// </summary>
ImmutableArray<CustomModifier> RefCustomModifiers { get; }
/// <summary>
/// The list of custom modifiers, if any, associated with the type of the property.
/// </summary>
ImmutableArray<CustomModifier> TypeCustomModifiers { get; }
}
}
| -1 |
dotnet/roslyn | 55,424 | Fix matchnamespacetofolder analyzer/codefix | Fix issues where the namespace for documents at the root would be incorrect.
Fixes: #54757 | ryzngard | 2021-08-05T00:29:53Z | 2021-08-05T06:48:11Z | cbd0fb83e317c7b2c33343b8d8d92b9cf2303db8 | 11776736ea4447733d3b11850c211d998c39b01d | Fix matchnamespacetofolder analyzer/codefix. Fix issues where the namespace for documents at the root would be incorrect.
Fixes: #54757 | ./src/Compilers/Test/Resources/Core/SymbolsTests/MultiTargeting/Source1Module.netmodule | MZ @ !L!This program cannot be run in DOS mode.
$ PE L q2)L " @ @ ` @ \" O @ H .text `.reloc @ @ B " H t (
*(
*0
+ * BSJB v4.0.30319 l #~ P T #Strings #US #GUID , #Blob G %3 9 & |