Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make compiler familiar with TH2 format of DeprecatedAttribute. #11589

Merged
merged 1 commit into from
May 27, 2016

Conversation

VSadov
Copy link
Member

@VSadov VSadov commented May 26, 2016

So far compiler knows about the following signatures of DeprecatedAttribute constructor.
DeprecatedAttribute(String, DeprecationType, UInt32)
DeprecatedAttribute(String, DeprecationType, UInt32, Platform)
DeprecatedAttribute(String, DeprecationType, UInt32, Type)

As of TH2 and onwards Windows SDK uses the following signature for the DeprecatedAttribute:

 DeprecatedAttribute(String, DeprecationType, UInt32, String)

Notice the "String" at the end of the signature.
This change adds the TH2 attribute signature to the known set.

Fixes: #10630

So far compiler knows about the following signatures of DeprecatedAttribute constructor.
   DeprecatedAttribute(String, DeprecationType, UInt32)
   DeprecatedAttribute(String, DeprecationType, UInt32, Platform)
   DeprecatedAttribute(String, DeprecationType, UInt32, Type)

As of TH2 and onwards  Windows SDK  uses the following signature for the DeprecatedAttribute:

     DeprecatedAttribute(String, DeprecationType, UInt32, String)

Notice the "String" at the end of the signature.
This change adds the TH2 attribute signature to the known set.

Fixes: dotnet#10630
@VSadov VSadov added this to the 1.3 milestone May 26, 2016
@VSadov
Copy link
Member Author

VSadov commented May 26, 2016

@dotnet/roslyn-compiler - please review
@MattGertz - for update3 signoff

@MattGertz
Copy link
Contributor

Approved pending CRs.

@@ -7510,6 +7512,93 @@ static void Main(string[] args)
);
}

[Fact]
public void TestDeprecatedAttributeTH2()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding similar test for VB.

@AlekseyTs
Copy link
Contributor

LGTM

@VSadov
Copy link
Member Author

VSadov commented May 27, 2016

Need one more review please

@jcouv
Copy link
Member

jcouv commented May 27, 2016

Looking at this now.

@jcouv
Copy link
Member

jcouv commented May 27, 2016

LGTM, thanks!
Just curious what the initials "TH" mean though.

@VSadov
Copy link
Member Author

VSadov commented May 27, 2016

@jcouv Threshold, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants