Commit 38d9cb0
Address code review feedback - extract method, use GetTagHelpers(), keep '@' in names
- Extract CreateAddUsingResolutionParams method to avoid creating fake FQN
- Use codeDocument.GetTagHelpers() instead of GetRequiredTagHelperContext() to get all tag helpers
- Don't strip '@' from attribute names - descriptor names include it
- Add test for @Bind:after scenario (attribute with parameter)
Tests improved from 3/8 to 5/9 passing. @OnClick and @onchange tests now pass. @Bind tests still failing - need to investigate why @Bind descriptors aren't matching.
Co-authored-by: davidwengier <[email protected]>1 parent 345c10d commit 38d9cb0
File tree
3 files changed
+44
-33
lines changed- src/Razor
- src/Microsoft.CodeAnalysis.Razor.Workspaces/CodeActions/Razor
3 files changed
+44
-33
lines changedLines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | | - | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
79 | | - | |
80 | | - | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
Lines changed: 22 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 70 | + | |
| 71 | + | |
75 | 72 | | |
76 | 73 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 74 | + | |
85 | 75 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
89 | 80 | | |
90 | | - | |
91 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
92 | 84 | | |
93 | | - | |
| 85 | + | |
94 | 86 | | |
95 | 87 | | |
96 | 88 | | |
| |||
100 | 92 | | |
101 | 93 | | |
102 | 94 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
108 | 101 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
113 | 105 | | |
114 | 106 | | |
115 | | - | |
| 107 | + | |
116 | 108 | | |
117 | 109 | | |
118 | 110 | | |
119 | | - | |
| 111 | + | |
120 | 112 | | |
121 | 113 | | |
122 | 114 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
125 | 140 | | |
0 commit comments