@@ -882,6 +882,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TypedefNameDecl::Qu
882
882
883
883
void CppSharp::Parser::AST::TypedefNameDecl::QualifiedType::set (CppSharp::Parser::AST::QualifiedType^ value)
884
884
{
885
+ if (ReferenceEquals (value, nullptr ))
886
+ throw gcnew ::System::ArgumentNullException (" value" , " Cannot be null because it is passed by value." );
885
887
((::CppSharp::CppParser::AST::TypedefNameDecl*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr ;
886
888
}
887
889
@@ -1419,6 +1421,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Parameter::Qualifie
1419
1421
1420
1422
void CppSharp::Parser::AST::Parameter::QualifiedType::set (CppSharp::Parser::AST::QualifiedType^ value)
1421
1423
{
1424
+ if (ReferenceEquals (value, nullptr ))
1425
+ throw gcnew ::System::ArgumentNullException (" value" , " Cannot be null because it is passed by value." );
1422
1426
((::CppSharp::CppParser::AST::Parameter*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr ;
1423
1427
}
1424
1428
@@ -1536,6 +1540,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Function::ReturnTyp
1536
1540
1537
1541
void CppSharp::Parser::AST::Function::ReturnType::set (CppSharp::Parser::AST::QualifiedType^ value)
1538
1542
{
1543
+ if (ReferenceEquals (value, nullptr ))
1544
+ throw gcnew ::System::ArgumentNullException (" value" , " Cannot be null because it is passed by value." );
1539
1545
((::CppSharp::CppParser::AST::Function*)NativePtr)->returnType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr ;
1540
1546
}
1541
1547
@@ -1738,6 +1744,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Function::Qualified
1738
1744
1739
1745
void CppSharp::Parser::AST::Function::QualifiedType::set (CppSharp::Parser::AST::QualifiedType^ value)
1740
1746
{
1747
+ if (ReferenceEquals (value, nullptr ))
1748
+ throw gcnew ::System::ArgumentNullException (" value" , " Cannot be null because it is passed by value." );
1741
1749
((::CppSharp::CppParser::AST::Function*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr ;
1742
1750
}
1743
1751
@@ -1891,6 +1899,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Method::ConversionT
1891
1899
1892
1900
void CppSharp::Parser::AST::Method::ConversionType::set (CppSharp::Parser::AST::QualifiedType^ value)
1893
1901
{
1902
+ if (ReferenceEquals (value, nullptr ))
1903
+ throw gcnew ::System::ArgumentNullException (" value" , " Cannot be null because it is passed by value." );
1894
1904
((::CppSharp::CppParser::AST::Method*)NativePtr)->conversionType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr ;
1895
1905
}
1896
1906
@@ -2166,6 +2176,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Variable::Qualified
2166
2176
2167
2177
void CppSharp::Parser::AST::Variable::QualifiedType::set (CppSharp::Parser::AST::QualifiedType^ value)
2168
2178
{
2179
+ if (ReferenceEquals (value, nullptr ))
2180
+ throw gcnew ::System::ArgumentNullException (" value" , " Cannot be null because it is passed by value." );
2169
2181
((::CppSharp::CppParser::AST::Variable*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr ;
2170
2182
}
2171
2183
@@ -2294,6 +2306,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Field::QualifiedTyp
2294
2306
2295
2307
void CppSharp::Parser::AST::Field::QualifiedType::set (CppSharp::Parser::AST::QualifiedType^ value)
2296
2308
{
2309
+ if (ReferenceEquals (value, nullptr ))
2310
+ throw gcnew ::System::ArgumentNullException (" value" , " Cannot be null because it is passed by value." );
2297
2311
((::CppSharp::CppParser::AST::Field*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr ;
2298
2312
}
2299
2313
@@ -2513,6 +2527,8 @@ void CppSharp::Parser::AST::VTableLayout::Components::set(System::Collections::G
2513
2527
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::VTableComponent>();
2514
2528
for each (CppSharp::Parser::AST::VTableComponent^ _element in value)
2515
2529
{
2530
+ if (ReferenceEquals (_element, nullptr ))
2531
+ throw gcnew ::System::ArgumentNullException (" _element" , " Cannot be null because it is passed by value." );
2516
2532
auto _marshalElement = *(::CppSharp::CppParser::AST::VTableComponent*)_element->NativePtr ;
2517
2533
_tmpvalue.push_back (_marshalElement);
2518
2534
}
@@ -2603,6 +2619,8 @@ CppSharp::Parser::AST::VTableLayout^ CppSharp::Parser::AST::VFTableInfo::Layout:
2603
2619
2604
2620
void CppSharp::Parser::AST::VFTableInfo::Layout::set (CppSharp::Parser::AST::VTableLayout^ value)
2605
2621
{
2622
+ if (ReferenceEquals (value, nullptr ))
2623
+ throw gcnew ::System::ArgumentNullException (" value" , " Cannot be null because it is passed by value." );
2606
2624
((::CppSharp::CppParser::AST::VFTableInfo*)NativePtr)->layout = *(::CppSharp::CppParser::AST::VTableLayout*)value->NativePtr ;
2607
2625
}
2608
2626
@@ -2674,6 +2692,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::LayoutField::Qualif
2674
2692
2675
2693
void CppSharp::Parser::AST::LayoutField::QualifiedType::set (CppSharp::Parser::AST::QualifiedType^ value)
2676
2694
{
2695
+ if (ReferenceEquals (value, nullptr ))
2696
+ throw gcnew ::System::ArgumentNullException (" value" , " Cannot be null because it is passed by value." );
2677
2697
((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr ;
2678
2698
}
2679
2699
@@ -2886,6 +2906,8 @@ void CppSharp::Parser::AST::ClassLayout::VFTables::set(System::Collections::Gene
2886
2906
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::VFTableInfo>();
2887
2907
for each (CppSharp::Parser::AST::VFTableInfo^ _element in value)
2888
2908
{
2909
+ if (ReferenceEquals (_element, nullptr ))
2910
+ throw gcnew ::System::ArgumentNullException (" _element" , " Cannot be null because it is passed by value." );
2889
2911
auto _marshalElement = *(::CppSharp::CppParser::AST::VFTableInfo*)_element->NativePtr ;
2890
2912
_tmpvalue.push_back (_marshalElement);
2891
2913
}
@@ -2899,6 +2921,8 @@ CppSharp::Parser::AST::VTableLayout^ CppSharp::Parser::AST::ClassLayout::Layout:
2899
2921
2900
2922
void CppSharp::Parser::AST::ClassLayout::Layout::set (CppSharp::Parser::AST::VTableLayout^ value)
2901
2923
{
2924
+ if (ReferenceEquals (value, nullptr ))
2925
+ throw gcnew ::System::ArgumentNullException (" value" , " Cannot be null because it is passed by value." );
2902
2926
((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->layout = *(::CppSharp::CppParser::AST::VTableLayout*)value->NativePtr ;
2903
2927
}
2904
2928
@@ -2969,6 +2993,8 @@ void CppSharp::Parser::AST::ClassLayout::Fields::set(System::Collections::Generi
2969
2993
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::LayoutField>();
2970
2994
for each (CppSharp::Parser::AST::LayoutField^ _element in value)
2971
2995
{
2996
+ if (ReferenceEquals (_element, nullptr ))
2997
+ throw gcnew ::System::ArgumentNullException (" _element" , " Cannot be null because it is passed by value." );
2972
2998
auto _marshalElement = *(::CppSharp::CppParser::AST::LayoutField*)_element->NativePtr ;
2973
2999
_tmpvalue.push_back (_marshalElement);
2974
3000
}
@@ -2992,6 +3018,8 @@ void CppSharp::Parser::AST::ClassLayout::Bases::set(System::Collections::Generic
2992
3018
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::LayoutBase>();
2993
3019
for each (CppSharp::Parser::AST::LayoutBase^ _element in value)
2994
3020
{
3021
+ if (ReferenceEquals (_element, nullptr ))
3022
+ throw gcnew ::System::ArgumentNullException (" _element" , " Cannot be null because it is passed by value." );
2995
3023
auto _marshalElement = *(::CppSharp::CppParser::AST::LayoutBase*)_element->NativePtr ;
2996
3024
_tmpvalue.push_back (_marshalElement);
2997
3025
}
@@ -3690,6 +3718,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TypeTemplateParamet
3690
3718
3691
3719
void CppSharp::Parser::AST::TypeTemplateParameter::DefaultArgument::set (CppSharp::Parser::AST::QualifiedType^ value)
3692
3720
{
3721
+ if (ReferenceEquals (value, nullptr ))
3722
+ throw gcnew ::System::ArgumentNullException (" value" , " Cannot be null because it is passed by value." );
3693
3723
((::CppSharp::CppParser::AST::TypeTemplateParameter*)NativePtr)->defaultArgument = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr ;
3694
3724
}
3695
3725
@@ -3965,6 +3995,8 @@ void CppSharp::Parser::AST::ClassTemplateSpecialization::Arguments::set(System::
3965
3995
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::TemplateArgument>();
3966
3996
for each (CppSharp::Parser::AST::TemplateArgument^ _element in value)
3967
3997
{
3998
+ if (ReferenceEquals (_element, nullptr ))
3999
+ throw gcnew ::System::ArgumentNullException (" _element" , " Cannot be null because it is passed by value." );
3968
4000
auto _marshalElement = *(::CppSharp::CppParser::AST::TemplateArgument*)_element->NativePtr ;
3969
4001
_tmpvalue.push_back (_marshalElement);
3970
4002
}
@@ -4205,6 +4237,8 @@ void CppSharp::Parser::AST::FunctionTemplateSpecialization::Arguments::set(Syste
4205
4237
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::TemplateArgument>();
4206
4238
for each (CppSharp::Parser::AST::TemplateArgument^ _element in value)
4207
4239
{
4240
+ if (ReferenceEquals (_element, nullptr ))
4241
+ throw gcnew ::System::ArgumentNullException (" _element" , " Cannot be null because it is passed by value." );
4208
4242
auto _marshalElement = *(::CppSharp::CppParser::AST::TemplateArgument*)_element->NativePtr ;
4209
4243
_tmpvalue.push_back (_marshalElement);
4210
4244
}
@@ -4422,6 +4456,8 @@ void CppSharp::Parser::AST::VarTemplateSpecialization::Arguments::set(System::Co
4422
4456
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::TemplateArgument>();
4423
4457
for each (CppSharp::Parser::AST::TemplateArgument^ _element in value)
4424
4458
{
4459
+ if (ReferenceEquals (_element, nullptr ))
4460
+ throw gcnew ::System::ArgumentNullException (" _element" , " Cannot be null because it is passed by value." );
4425
4461
auto _marshalElement = *(::CppSharp::CppParser::AST::TemplateArgument*)_element->NativePtr ;
4426
4462
_tmpvalue.push_back (_marshalElement);
4427
4463
}
0 commit comments