@@ -481,7 +481,7 @@ var member in enumTypeDefAst.Members.Where(
481481 // Next we need to find the location of the equals sign for this
482482 // member. We know the line it should be on. We can
483483 // search all of the equals signs on that line.
484- //
484+ //
485485 // Unlike hashtables, we don't have an extent for the LHS and
486486 // RHS of the member. We have the extent of the entire
487487 // member, the name of the member, and the extent of the
@@ -636,13 +636,12 @@ private List<CorrectionExtent> GetCorrectionExtent(
636636 IScriptExtent lhsExtent ,
637637 IScriptExtent equalsExtent ,
638638 int targetColumn
639- )
640- {
639+ ) =>
641640 // We generate a correction extent which replaces the text between
642641 // the end of the lhs and the start of the equals sign with the
643642 // appropriate number of spaces to align the equals sign to the
644643 // target column.
645- return new List < CorrectionExtent >
644+ new List < CorrectionExtent >
646645 {
647646 new CorrectionExtent (
648647 lhsExtent . EndLineNumber ,
@@ -653,58 +652,36 @@ int targetColumn
653652 string . Format ( CultureInfo . CurrentCulture , Strings . AlignAssignmentStatementError )
654653 )
655654 } ;
656- }
657655
658656 /// <summary>
659657 /// Retrieves the common name of this rule.
660658 /// </summary>
661- public override string GetCommonName ( )
662- {
663- return string . Format ( CultureInfo . CurrentCulture , Strings . AlignAssignmentStatementCommonName ) ;
664- }
659+ public override string GetCommonName ( ) => string . Format ( CultureInfo . CurrentCulture , Strings . AlignAssignmentStatementCommonName ) ;
665660
666661 /// <summary>
667662 /// Retrieves the description of this rule.
668663 /// </summary>
669- public override string GetDescription ( )
670- {
671- return string . Format ( CultureInfo . CurrentCulture , Strings . AlignAssignmentStatementDescription ) ;
672- }
664+ public override string GetDescription ( ) => string . Format ( CultureInfo . CurrentCulture , Strings . AlignAssignmentStatementDescription ) ;
673665
674666 /// <summary>
675667 /// Retrieves the name of this rule.
676668 /// </summary>
677- public override string GetName ( )
678- {
679- return string . Format (
669+ public override string GetName ( ) => string . Format (
680670 CultureInfo . CurrentCulture ,
681671 Strings . NameSpaceFormat ,
682672 GetSourceName ( ) ,
683673 Strings . AlignAssignmentStatementName ) ;
684- }
685674
686675 /// <summary>
687676 /// Retrieves the severity of the rule: error, warning or information.
688677 /// </summary>
689- public override RuleSeverity GetSeverity ( )
690- {
691- return RuleSeverity . Warning ;
692- }
678+ public override RuleSeverity GetSeverity ( ) => RuleSeverity . Warning ;
693679
694680 /// <summary>
695681 /// Retrieves the name of the module/assembly the rule is from.
696682 /// </summary>
697- public override string GetSourceName ( )
698- {
699- return string . Format ( CultureInfo . CurrentCulture , Strings . SourceName ) ;
700- }
683+ public override string GetSourceName ( ) => string . Format ( CultureInfo . CurrentCulture , Strings . SourceName ) ;
701684
702- /// <summary>
703- /// Retrieves the type of the rule, Builtin, Managed or Module.
704- /// </summary>
705- public override SourceType GetSourceType ( )
706- {
707- return SourceType . Builtin ;
708- }
685+ public override SourceType GetSourceType ( ) => SourceType . Builtin ;
709686 }
710687}
0 commit comments