Skip to content

Commit 022785a

Browse files
authored
Merge pull request #19048 from github/redsun82/swift-count-nodes
Swift: add summary about total extracted nodes
2 parents 8757d2f + f06aa38 commit 022785a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: newQuery
3+
---
4+
* Added a new summary query counting the total number of extracted AST nodes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* @name Number of extracted AST nodes
3+
* @description Count all AST nodes.
4+
* @kind metric
5+
* @id swift/diagnostics/ast-nodes
6+
* @tags summary
7+
*/
8+
9+
import swift
10+
11+
select count(AstNode n)

0 commit comments

Comments
 (0)