| 1 |
<#@ template debug="false" hostspecific="false" language="C#" #> |
| 2 |
<#@ assembly name="System" #> |
| 3 |
<#@ assembly name="System.Core" #> |
| 4 |
<#@ import namespace="System.Linq" #> |
| 5 |
<#@ output extension=".cs" #> |
| 6 |
<#@ include file="Foo.t4" #> |
| 7 |
<#@ CleanupBehavior processor="T4VSHost" CleanupAfterProcessingtemplate="true" #> |
| 8 |
|
| 9 |
---------------------------------------------------- |
| 10 |
|
| 11 |
[ |
| 12 |
["block", [ |
| 13 |
["directive", [ |
| 14 |
["delimiter", "<#@"], |
| 15 |
["content", [ |
| 16 |
["keyword", "template"], |
| 17 |
["attr-name", "debug"], |
| 18 |
["attr-value", [ |
| 19 |
["punctuation", "="], |
| 20 |
["punctuation", "\""], |
| 21 |
"false", |
| 22 |
["punctuation", "\""] |
| 23 |
]], |
| 24 |
["attr-name", "hostspecific"], |
| 25 |
["attr-value", [ |
| 26 |
["punctuation", "="], |
| 27 |
["punctuation", "\""], |
| 28 |
"false", |
| 29 |
["punctuation", "\""] |
| 30 |
]], |
| 31 |
["attr-name", "language"], |
| 32 |
["attr-value", [ |
| 33 |
["punctuation", "="], |
| 34 |
["punctuation", "\""], |
| 35 |
"C#", |
| 36 |
["punctuation", "\""] |
| 37 |
]] |
| 38 |
]], |
| 39 |
["delimiter", "#>"] |
| 40 |
]] |
| 41 |
]], |
| 42 |
["block", [ |
| 43 |
["directive", [ |
| 44 |
["delimiter", "<#@"], |
| 45 |
["content", [ |
| 46 |
["keyword", "assembly"], |
| 47 |
["attr-name", "name"], |
| 48 |
["attr-value", [ |
| 49 |
["punctuation", "="], |
| 50 |
["punctuation", "\""], |
| 51 |
"System", |
| 52 |
["punctuation", "\""] |
| 53 |
]] |
| 54 |
]], |
| 55 |
["delimiter", "#>"] |
| 56 |
]] |
| 57 |
]], |
| 58 |
["block", [ |
| 59 |
["directive", [ |
| 60 |
["delimiter", "<#@"], |
| 61 |
["content", [ |
| 62 |
["keyword", "assembly"], |
| 63 |
["attr-name", "name"], |
| 64 |
["attr-value", [ |
| 65 |
["punctuation", "="], |
| 66 |
["punctuation", "\""], |
| 67 |
"System.Core", |
| 68 |
["punctuation", "\""] |
| 69 |
]] |
| 70 |
]], |
| 71 |
["delimiter", "#>"] |
| 72 |
]] |
| 73 |
]], |
| 74 |
["block", [ |
| 75 |
["directive", [ |
| 76 |
["delimiter", "<#@"], |
| 77 |
["content", [ |
| 78 |
["keyword", "import"], |
| 79 |
["attr-name", "namespace"], |
| 80 |
["attr-value", [ |
| 81 |
["punctuation", "="], |
| 82 |
["punctuation", "\""], |
| 83 |
"System.Linq", |
| 84 |
["punctuation", "\""] |
| 85 |
]] |
| 86 |
]], |
| 87 |
["delimiter", "#>"] |
| 88 |
]] |
| 89 |
]], |
| 90 |
["block", [ |
| 91 |
["directive", [ |
| 92 |
["delimiter", "<#@"], |
| 93 |
["content", [ |
| 94 |
["keyword", "output"], |
| 95 |
["attr-name", "extension"], |
| 96 |
["attr-value", [ |
| 97 |
["punctuation", "="], |
| 98 |
["punctuation", "\""], |
| 99 |
".cs", |
| 100 |
["punctuation", "\""] |
| 101 |
]] |
| 102 |
]], |
| 103 |
["delimiter", "#>"] |
| 104 |
]] |
| 105 |
]], |
| 106 |
["block", [ |
| 107 |
["directive", [ |
| 108 |
["delimiter", "<#@"], |
| 109 |
["content", [ |
| 110 |
["keyword", "include"], |
| 111 |
["attr-name", "file"], |
| 112 |
["attr-value", [ |
| 113 |
["punctuation", "="], |
| 114 |
["punctuation", "\""], |
| 115 |
"Foo.t4", |
| 116 |
["punctuation", "\""] |
| 117 |
]] |
| 118 |
]], |
| 119 |
["delimiter", "#>"] |
| 120 |
]] |
| 121 |
]], |
| 122 |
["block", [ |
| 123 |
["directive", [ |
| 124 |
["delimiter", "<#@"], |
| 125 |
["content", [ |
| 126 |
["keyword", "CleanupBehavior"], |
| 127 |
["attr-name", "processor"], |
| 128 |
["attr-value", [ |
| 129 |
["punctuation", "="], |
| 130 |
["punctuation", "\""], |
| 131 |
"T4VSHost", |
| 132 |
["punctuation", "\""] |
| 133 |
]], |
| 134 |
["attr-name", "CleanupAfterProcessingtemplate"], |
| 135 |
["attr-value", [ |
| 136 |
["punctuation", "="], |
| 137 |
["punctuation", "\""], |
| 138 |
"true", |
| 139 |
["punctuation", "\""] |
| 140 |
]] |
| 141 |
]], |
| 142 |
["delimiter", "#>"] |
| 143 |
]] |
| 144 |
]] |
| 145 |
] |
| 146 |
|
| 147 |
---------------------------------------------------- |
| 148 |
|
| 149 |
Checks for text template directives. |