SerializableAttribute is not available in the portable class library

This commit is contained in:
Sam Harwell 2013-03-05 15:32:11 -06:00
parent 5bd661e115
commit 0ea64b9bb1
8 changed files with 16 additions and 0 deletions

View File

@ -34,7 +34,9 @@ using Sharpen;
namespace Antlr4.Runtime.Atn
{
#if !PORTABLE
[System.Serializable]
#endif
public sealed class PredictionMode
{
/// <summary>

View File

@ -34,7 +34,9 @@ using Sharpen;
namespace Antlr4.Runtime
{
#if !PORTABLE
[System.Serializable]
#endif
public class CommonToken : IWritableToken
{
private const long serialVersionUID = -6708843461296520577L;

View File

@ -41,7 +41,9 @@ namespace Antlr4.Runtime
/// Disambiguating predicate evaluation occurs when we test a predicate during
/// prediction.
/// </remarks>
#if !PORTABLE
[System.Serializable]
#endif
public class FailedPredicateException : RecognitionException
{
private const long serialVersionUID = 5379330841495778709L;

View File

@ -40,7 +40,9 @@ namespace Antlr4.Runtime
/// This signifies any kind of mismatched input exceptions such as
/// when the current input does not match the expected token.
/// </remarks>
#if !PORTABLE
[System.Serializable]
#endif
public class InputMismatchException : RecognitionException
{
private const long serialVersionUID = 1532568338707443067L;

View File

@ -34,7 +34,9 @@ using Sharpen;
namespace Antlr4.Runtime
{
#if !PORTABLE
[System.Serializable]
#endif
public class LexerNoViableAltException : RecognitionException
{
private const long serialVersionUID = -730999203913001726L;

View File

@ -45,7 +45,9 @@ namespace Antlr4.Runtime.Misc
/// response to a parse error.
/// </remarks>
/// <author>Sam Harwell</author>
#if !PORTABLE
[System.Serializable]
#endif
public class ParseCanceledException : OperationCanceledException
{
public ParseCanceledException()

View File

@ -44,7 +44,9 @@ namespace Antlr4.Runtime
/// of the offending input and also knows where the parser was
/// in the various paths when the error. Reported by reportNoViableAlternative()
/// </remarks>
#if !PORTABLE
[System.Serializable]
#endif
public class NoViableAltException : RecognitionException
{
private const long serialVersionUID = 5096000008992867052L;

View File

@ -43,7 +43,9 @@ namespace Antlr4.Runtime
/// in the input, where it is in the ATN, the rule invocation stack,
/// and what kind of problem occurred.
/// </remarks>
#if !PORTABLE
[System.Serializable]
#endif
public class RecognitionException : Exception
{
private const long serialVersionUID = -3861826954750022374L;