-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCSharp_Program blocks_Flow.xml
18 lines (18 loc) · 1.05 KB
/
CSharp_Program blocks_Flow.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="utf-8"?>
<XmlTemplateCategoryInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="Flow">
<Comments>Templates in this category generate code that controls program flow. This includes loops (while, for, foreach, etc.), switch statements, and flow breakage (e.g., throw exceptions, return, break, continue, etc.).</Comments>
<Template Name="detn">
<Expansion Priority="0">
<Body>default: throw new «Caret»«Field(Exception)»«BlockAnchor»(«Field»);</Body>
<Context />
<ContextString>([InMethodBlock] || [InPropertyAccessor]) && !([InAnyComment] || [InPreprocessorDirective] || [InString])</ContextString>
</Expansion>
</Template>
<Template Name="de">
<Expansion Priority="0">
<Body>«:#default#»</Body>
<Context />
<ContextString>([InMethodBlock] || [InPropertyAccessor]) && !([InAnyComment] || [InPreprocessorDirective] || [InString])</ContextString>
</Expansion>
</Template>
</XmlTemplateCategoryInfo>