You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
parent
4bdbaf4a88
commit
966bba02bb
19
external/linker/cecil/Mono.Cecil/Modifiers.cs
vendored
19
external/linker/cecil/Mono.Cecil/Modifiers.cs
vendored
@@ -56,7 +56,9 @@ namespace Mono.Cecil {
|
||||
public OptionalModifierType (TypeReference modifierType, TypeReference type)
|
||||
: base (type)
|
||||
{
|
||||
Mixin.CheckModifier (modifierType, type);
|
||||
if (modifierType == null)
|
||||
throw new ArgumentNullException (Mixin.Argument.modifierType.ToString ());
|
||||
Mixin.CheckType (type);
|
||||
this.modifier_type = modifierType;
|
||||
this.etype = MD.ElementType.CModOpt;
|
||||
}
|
||||
@@ -99,21 +101,12 @@ namespace Mono.Cecil {
|
||||
public RequiredModifierType (TypeReference modifierType, TypeReference type)
|
||||
: base (type)
|
||||
{
|
||||
Mixin.CheckModifier (modifierType, type);
|
||||
if (modifierType == null)
|
||||
throw new ArgumentNullException (Mixin.Argument.modifierType.ToString ());
|
||||
Mixin.CheckType (type);
|
||||
this.modifier_type = modifierType;
|
||||
this.etype = MD.ElementType.CModReqD;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static partial class Mixin {
|
||||
|
||||
public static void CheckModifier (TypeReference modifierType, TypeReference type)
|
||||
{
|
||||
if (modifierType == null)
|
||||
throw new ArgumentNullException ("modifierType");
|
||||
if (type == null)
|
||||
throw new ArgumentNullException ("type");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user