Skip to content

Commit

Permalink
FMT pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurens-W committed Nov 28, 2024
1 parent 17af876 commit 29b6ea8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions rewrite-csharp/src/main/java/org/openrewrite/csharp/tree/Cs.java
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,6 @@ public PropertyDeclaration withInitializer(@Nullable JLeftPadded<Expression> ini
}
}


@Getter
@FieldDefaults(makeFinal = true, level = AccessLevel.PRIVATE)
@EqualsAndHashCode(callSuper = false, onlyExplicitlyIncluded = true)
Expand Down Expand Up @@ -2797,7 +2796,6 @@ public <P> J acceptCSharp(CSharpVisitor<P> v, P p) {
* // use result
* }
* </pre>
* <p>
* Example 2: Deconstruction declaration:
* <pre>
* int (x, y) = point;
Expand Down Expand Up @@ -2875,12 +2873,10 @@ interface VariableDesignation extends Expression, Cs {
/**
* Represents a single variable declaration within a declaration expression.
* Used both for simple out variable declarations and as elements within deconstruction declarations.
* <p>
* Example in out variable:
* <pre>
* int.TryParse(s, out int x) // 'int x' is the SingleVariable
* </pre>
* <p>
* Example in deconstruction:
* <pre>
* (int x, string y) = point; // both 'int x' and 'string y' are SingleVariables
Expand Down Expand Up @@ -2935,12 +2931,10 @@ public CoordinateBuilder.Expression getCoordinates() {

/**
* Represents a parenthesized list of variable declarations used in deconstruction patterns.
* <p>
* Example of simple deconstruction:
* <pre>
* int (x, y) = point;
* </pre>
* <p>
* Example of nested deconstruction:
* <pre>
* (int count, var (string name, int age)) = GetPersonDetails();
Expand Down Expand Up @@ -3424,13 +3418,11 @@ public Cs.Unary withOperator(JLeftPadded<Type> operator) {
/**
* Represents a constructor initializer which is a call to another constructor, either in the same class (this)
* or in the base class (base).
* <p>
* Examples:
* <pre>
* class Person {
* // Constructor with 'this' initializer
* public Person(string name) : this(name, 0) { }
* <p>
* // Constructor with 'base' initializer
* public Person(string name, int age) : base(name) { }
* }
Expand Down Expand Up @@ -5288,7 +5280,6 @@ public CoordinateBuilder.Expression getCoordinates() {

}


/**
* Represents a property pattern clause in C# pattern matching, which matches against object properties.
* <p>
Expand Down Expand Up @@ -6396,7 +6387,6 @@ public CoordinateBuilder.Statement getCoordinates() {
}
}


/**
* Represents a C# checked statement which enforces overflow checking for arithmetic operations
* and conversions. Operations within a checked block will throw OverflowException if arithmetic
Expand Down

0 comments on commit 29b6ea8

Please sign in to comment.