-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2424 from sharwell/pattern-matching-is
Fix 'is pattern expression' parentheses handling
- Loading branch information
Showing
5 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
StyleCop.Analyzers/StyleCop.Analyzers.Test/WorkItemAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. | ||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. | ||
|
||
namespace StyleCop.Analyzers.Test | ||
{ | ||
using System; | ||
|
||
/// <summary> | ||
/// Used to tag test methods or types which are created for a given WorkItem | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)] | ||
public sealed class WorkItemAttribute : Attribute | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="WorkItemAttribute"/> class. | ||
/// </summary> | ||
/// <param name="id">The ID of the issue in the original tracker where the work item was first reported. This | ||
/// could be a GitHub issue or pull request number, or the number of a Microsoft-internal bug.</param> | ||
/// <param name="issueUri">The URI where the work item can be viewed. This is a link to work item | ||
/// <paramref name="id"/> in the original source.</param> | ||
public WorkItemAttribute(int id, string issueUri) | ||
{ | ||
this.Id = id; | ||
this.Location = issueUri; | ||
} | ||
|
||
public int Id | ||
{ | ||
get; | ||
} | ||
|
||
public string Location | ||
{ | ||
get; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters