Debian Codegraph @

tests/languages/t4-cs/block_expression_feature.test

raw
1 var a = <#= name + "abc" #>;
2 var b = new int[] { <#=
3 String.Join(", ", number.Select(Transformation))
4 #> };
5
6 ----------------------------------------------------
7
8 [
9 "var a = ",
10 ["block", [
11 ["expression", [
12 ["delimiter", "<#="],
13 ["content", [
14 " name ",
15 ["operator", "+"],
16 ["string", "\"abc\""]
17 ]],
18 ["delimiter", "#>"]
19 ]]
20 ]],
21 ";\r\nvar b = new int[] { ",
22 ["block", [
23 ["expression", [
24 ["delimiter", "<#="],
25 ["content", [
26 "\r\n\tString",
27 ["punctuation", "."],
28 ["function", "Join"],
29 ["punctuation", "("],
30 ["string", "\", \""],
31 ["punctuation", ","],
32 " number",
33 ["punctuation", "."],
34 ["function", "Select"],
35 ["punctuation", "("],
36 "Transformation",
37 ["punctuation", ")"],
38 ["punctuation", ")"]
39 ]],
40 ["delimiter", "#>"]
41 ]]
42 ]],
43 " };"
44 ]
45
46 ----------------------------------------------------
47
48 Checks for expression control blocks.