// Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
namespace ICSharpCode.Decompiler.CSharp.Resolver
{
[Flags]
public enum OverloadResolutionErrors
{
None = 0,
///
/// Too many positional arguments (some could not be mapped to any parameter).
///
TooManyPositionalArguments = 0x0001,
///
/// A named argument could not be mapped to any parameter
///
NoParameterFoundForNamedArgument = 0x0002,
///
/// Type inference failed for a generic method.
///
TypeInferenceFailed = 0x0004,
///
/// Type arguments were explicitly specified, but did not match the number of type parameters.
///
WrongNumberOfTypeArguments = 0x0008,
///
/// After substituting type parameters with the inferred types; a constructed type within the formal parameters
/// does not satisfy its constraint.
///
ConstructedTypeDoesNotSatisfyConstraint = 0x0010,
///
/// No argument was mapped to a non-optional parameter
///
MissingArgumentForRequiredParameter = 0x0020,
///
/// Several arguments were mapped to a single (non-params-array) parameter
///
MultipleArgumentsForSingleParameter = 0x0040,
///
/// 'ref'/'out' passing mode doesn't match for at least 1 parameter
///
ParameterPassingModeMismatch = 0x0080,
///
/// Argument type cannot be converted to parameter type
///
ArgumentTypeMismatch = 0x0100,
///
/// There is no unique best overload.
/// This error does not apply to any single candidate, but only to the overall result of overload resolution.
///
///
/// This error does not prevent a candidate from being applicable.
///
AmbiguousMatch = 0x0200,
///
/// The member is not accessible.
///
///
/// This error is generated by member lookup; not by overload resolution.
///
Inaccessible = 0x0400,
///
/// A generic method
///
///
/// This error does not prevent a candidate from being applicable.
///
MethodConstraintsNotSatisfied = 0x0800,
///
/// Using 'out var' instead of 'out T' would result in loss of type information.
///
OutVarTypeMismatch = 0x1000,
}
}