Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa57017

Browse files
committed
C#: Minor edit.
1 parent 1428d0b commit fa57017

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

  • csharp/ql/src/semmle/code/csharp

csharp/ql/src/semmle/code/csharp/Stmt.qll

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,20 +388,19 @@ class RecursivePatternCase extends LabeledStmt, CaseStmt {
388388
* For example, `string` in `case string { Length: 0 } empty:`.
389389
*/
390390
TypeAccess getTypeAccess() { result = getChild(1) }
391-
391+
392392
/**
393393
* Gets the checked type of this recursive pattern, if any.
394394
* For example, `string` in `case string { Length: 0 } empty:`.
395395
*/
396396
Type getCheckedType() { result = getTypeAccess().getType() }
397-
398-
/**
397+
398+
/**
399399
* Gets the recursive pattern of this case.
400400
* For example, `{ Length: 0 }` in `case string { Length: 0 } empty:`.
401401
*/
402-
403402
RecursivePatternExpr getRecursivePattern() { result = pattern }
404-
403+
405404
LocalVariableDeclExpr getVariableDeclExpr() { result = getChild(0) }
406405
}
407406

0 commit comments

Comments
 (0)