-
Notifications
You must be signed in to change notification settings - Fork 220
New baselines for CSharpTemplateTest and CSharpVerbatimBlockTest #2708
New baselines for CSharpTemplateTest and CSharpVerbatimBlockTest #2708
Conversation
- Rewrite CSharp parser - Basic rewrite of HTML parser - Define and generate syntax nodes and boilerplate - Rewrite ClassifiedSpan generation logic - Update parser test infrastructure
* Generate baselines for HtmlDocumentTest * Feedback * More feedback * Rename all Html to Markup
* Rewrite WhitespaceRewriter * Rename CSharpExpression to CSharpExplicitExpression
| SyntaxKind.RightParenthesis;[)]; | ||
| MetaCode span - Gen<None> - [)] - SpanEditHandler;Accepts:None - (36:0,36) - Tokens:1 | ||
| SyntaxKind.RightParenthesis;[)]; | ||
| CSharpCodeBlock - [0..37)::37 - [(Html.Repeat(10, @<p>Foo #@item</p>))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be good to eventually change these tests to run in a format that actually happens in practice. Aka, running them in the context of a document so things like a transition is required to even begin parsing C#
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How important is it you think relative to other work? Do you think it's worth filing a bug for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spoke offline. We'll do this if/when we really need it.
| CSharpCodeBlock - [1..10)::9 | ||
| CSharpStatementLiteral - [1..2)::1 - [i] - Gen<Stmt> - AutoCompleteEditHandler;Accepts:Any,AutoComplete:[<null>];AtEOL | ||
| Identifier;[i]; | ||
| CSharpTemplateBlock - [2..10)::8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not template is it?
| Whitespace;[ ]; | ||
| Assign;[=]; | ||
| Whitespace;[ ]; | ||
| CSharpTemplateBlock - [12..20)::8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya template is totally the wrong name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. I'll add this to the list to discuss in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1ffaefe to
ded13b7
Compare
|
Merged ec5cb34 |
#2698