File tree Expand file tree Collapse file tree
src/Xamarin.Android.Build.Tasks/Utilities/LlvmIrGenerator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #nullable disable
1+ #nullable enable
22
33using System ;
44using System . Collections . Generic ;
@@ -24,7 +24,7 @@ abstract class LlvmIrFunctionBodyItem
2424 public void Write ( GeneratorWriteContext context , LlvmIrGenerator generator )
2525 {
2626 DoWrite ( context , generator ) ;
27- if ( ! String . IsNullOrEmpty ( Comment ) ) {
27+ if ( ! Comment . IsNullOrEmpty ( ) ) {
2828 context . Output . Write ( ' ' ) ;
2929 generator . WriteComment ( context , Comment ) ;
3030 }
@@ -44,14 +44,14 @@ abstract class LlvmIrFunctionLocalItem : LlvmIrFunctionBodyItem
4444
4545 public string Name {
4646 get {
47- if ( String . IsNullOrEmpty ( name ) ) {
47+ if ( name . IsNullOrEmpty ( ) ) {
4848 throw new InvalidOperationException ( "Internal error: name hasn't been set yet" ) ;
4949 }
5050 return name ;
5151 }
5252
5353 protected set {
54- if ( String . IsNullOrEmpty ( value ) ) {
54+ if ( value . IsNullOrEmpty ( ) ) {
5555 throw new InvalidOperationException ( "Internal error: value must not be null or empty" ) ;
5656 }
5757 name = value ;
@@ -84,7 +84,7 @@ protected void SetName (ulong num)
8484 Name = num . ToString ( CultureInfo . InvariantCulture ) ;
8585 }
8686
87- protected bool NameIsSet ( ) => ! String . IsNullOrEmpty ( name ) ;
87+ protected bool NameIsSet ( ) => ! name . IsNullOrEmpty ( ) ;
8888}
8989
9090class LlvmIrFunctionLabelItem : LlvmIrFunctionLocalItem
Original file line number Diff line number Diff line change 1- #nullable disable
1+ #nullable enable
22
33using System ;
44using System . Buffers ;
You can’t perform that action at this time.
0 commit comments