Skip to content

Commit 8d2b1f0

Browse files
committed
The Big Bang 4
1 parent 88bfb79 commit 8d2b1f0

24 files changed

+1627
-764
lines changed

api.nt

Lines changed: 47 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,53 @@
11
{{- config.AddGeneratedFilesToVSProject = false
22
capture output
3-
types_type = data.Classes | Symbols.WhereNamespaceStartsWith "NetArchTest.Rules" | Symbols.WhereNameMatches "^Types$" | Array.First
4-
5-
predicate_type = data.Classes | Symbols.WhereNamespaceStartsWith "NetArchTest.Rules" | Symbols.WhereNameMatches "^Predicate" | Array.First
6-
predicatelist_type = data.Classes | Symbols.WhereNamespaceStartsWith "NetArchTest.Rules" | Symbols.WhereNameMatches "^PredicateList" | Array.First
7-
condition_type = data.Classes | Symbols.WhereNamespaceStartsWith "NetArchTest.Rules" | Symbols.WhereNameMatches "^Condition" | Array.First
8-
conditionlist_type = data.Classes | Symbols.WhereNamespaceStartsWith "NetArchTest.Rules" | Symbols.WhereNameMatches "^ConditionList" | Array.First
9-
testresult_type = data.Classes | Symbols.WhereNamespaceStartsWith "NetArchTest.Rules" | Symbols.WhereNameMatches "^TestResult" | Array.First
10-
itype_type = data.Interfaces | Symbols.WhereNamespaceStartsWith "NetArchTest.Rules" | Symbols.WhereNameMatches "^IType" | Array.First
3+
types_type = data.Classes | Symbols.WhereNamespaceStartsWith "NetArchTest.Rules" | Symbols.WhereNameMatches "^Types$"
4+
predicate_type = data.Classes | Symbols.WhereNamespaceStartsWith "NetArchTest.Rules" | Symbols.WhereNameMatches "^Predicate"
5+
condition_type = data.Classes | Symbols.WhereNamespaceStartsWith "NetArchTest.Rules" | Symbols.WhereNameMatches "^Condition"
6+
testresult_type = data.Classes | Symbols.WhereNamespaceStartsWith "NetArchTest.Rules" | Symbols.WhereNameMatches "^TestResult"
7+
itype_type = data.Interfaces | Symbols.WhereNamespaceStartsWith "NetArchTest.Rules" | Symbols.WhereNameMatches "^IType"
8+
all_types = types_type | Array.Concat predicate_type | Array.Concat condition_type | Array.Concat testresult_type | Array.Concat itype_type
119
}}
12-
# Types
13-
{{ for method in types_type.Methods | Symbols.ThatArePublic | Array.Sort "Name" }}
14-
* [{{method.Name}}](#{{method.BareName}})
15-
{{- end }}
16-
17-
# Predicate
18-
{{ for method in predicate_type.Methods | Symbols.ThatArePublic | Array.Sort "Name" }}
19-
* [{{method.Name}}](#{{method.BareName}})
20-
{{- end }}
21-
22-
# PredicateList
23-
{{ for method in predicatelist_type.Methods | Symbols.ThatArePublic | Array.Sort "Name" }}
24-
* [{{method.Name}}](#{{method.BareName}})
25-
{{- end }}
26-
27-
# Condition
28-
{{ for method in condition_type.Methods | Symbols.ThatArePublic | Array.Sort "Name" }}
29-
* [{{method.Name}}](#{{method.BareName}})
30-
{{- end }}
31-
32-
# ConditionList
33-
{{ for method in conditionlist_type.Methods | Symbols.ThatArePublic | Array.Sort "Name" }}
34-
* [{{method.Name}}](#{{method.BareName}})
35-
{{- end }}
36-
37-
# TestResult
38-
{{ for method in testresult_type.Properties | Symbols.ThatArePublic | Array.Sort "Name" }}
39-
* [{{method.Name}}](#{{method.BareName}})
40-
{{- end }}
41-
42-
# IType
43-
{{ for method in itype_type.Properties | Symbols.ThatArePublic | Array.Sort "Name" }}
44-
* [{{method.Name}}](#{{method.BareName}})
45-
{{- end }}
10+
11+
12+
{{- for type in all_types }}
13+
## {{ type.Name }}
14+
15+
{{- for method in type.Methods | Symbols.ThatArePublic | Symbols.ThatAreStatic | Array.Sort "Name" }}
16+
- [{{method.Name}}](#{{type.BareName}}{{method.BareName}})
17+
{{- end }}
18+
{{~ for method in type.Methods | Symbols.ThatArePublic | Symbols.ThatAreNotStatic | Array.Sort "Name" }}
19+
* [{{method.Name}}](#{{type.BareName}}{{method.BareName}})
20+
{{- end }}
21+
{{- for prop in type.Properties | Symbols.ThatArePublic | Symbols.ThatAreNotStatic | Array.Sort "Name" }}
22+
* [{{prop.Name}}](#{{type.BareName}}{{prop.BareName}})
23+
{{- end }}
24+
{{ end}}
25+
26+
27+
28+
{{- for type in all_types }}
29+
## {{ type.Name }}
30+
31+
{{- for method in type.Methods | Symbols.ThatArePublic | Array.Sort "Name" }}
32+
### {{type.BareName}}.{{method.Name}}
33+
```csharp
34+
{{method.FullName}}
35+
```
36+
{{ method.DocComment.Summary | String.StripNewlines }}
37+
{{- end }}
38+
39+
{{- for prop in type.Properties | Symbols.ThatArePublic | Symbols.ThatAreNotStatic | Array.Sort "Name" }}
40+
### {{type.BareName}}.{{prop.Name}}
41+
```csharp
42+
{{prop.FullName}}
43+
```
44+
{{~ prop.DocComment.Summary | String.StripNewlines }}
45+
{{- end }}
46+
{{ end}}
47+
48+
49+
50+
4651

4752
{{
4853
end

0 commit comments

Comments
 (0)