1[
2 {"type":"NameBuiltin","value":"Get-ChildItem"},
3 {"type":"Text","value":" "},
4 {"type":"Name","value":"-Recurse"},
5 {"type":"Text","value":" "},
6 {"type":"Name","value":"-Force"},
7 {"type":"Text","value":" "},
8 {"type":"Name","value":"-ErrorAction"},
9 {"type":"Text","value":" "},
10 {"type":"Name","value":"SilentlyContinue"},
11 {"type":"Text","value":" "},
12 {"type":"Name","value":"-Name"},
13 {"type":"Text","value":" "},
14 {"type":"Name","value":"-Path"},
15 {"type":"Text","value":" "},
16 {"type":"Name","value":"C:"},
17 {"type":"Punctuation","value":"\\"},
18 {"type":"Text","value":" "},
19 {"type":"Punctuation","value":"*."},
20 {"type":"Name","value":"txt"},
21 {"type":"Text","value":"\n\n"},
22 {"type":"Comment","value":"#"},
23 {"type":"Keyword","value":"Requires"},
24 {"type":"TextWhitespace","value":" "},
25 {"type":"KeywordDeclaration","value":"-modules"},
26 {"type":"NameAttribute","value":" ModuleName"},
27 {"type":"TextWhitespace","value":"\n"},
28 {"type":"Comment","value":"#"},
29 {"type":"Keyword","value":"Requires"},
30 {"type":"TextWhitespace","value":" "},
31 {"type":"KeywordDeclaration","value":"-Assembly"},
32 {"type":"NameAttribute","value":" \"System.Management.Automation, Version=1.0.0.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35\""},
33 {"type":"TextWhitespace","value":"\n"},
34 {"type":"Comment","value":"#"},
35 {"type":"Keyword","value":"Requires"},
36 {"type":"TextWhitespace","value":" "},
37 {"type":"KeywordDeclaration","value":"-Modules"},
38 {"type":"NameAttribute","value":" @{ ModuleName=\"ModuleName\"; ModuleVersion=\"1.2.3\" }"},
39 {"type":"TextWhitespace","value":"\n"},
40 {"type":"Comment","value":"#"},
41 {"type":"Keyword","value":"Requires"},
42 {"type":"TextWhitespace","value":" "},
43 {"type":"KeywordDeclaration","value":"-PSSnapin"},
44 {"type":"NameAttribute","value":" SnapinName -version 1.2"},
45 {"type":"TextWhitespace","value":"\n"},
46 {"type":"Comment","value":"#"},
47 {"type":"Keyword","value":"Requires"},
48 {"type":"TextWhitespace","value":" "},
49 {"type":"KeywordDeclaration","value":"-RunAsAdministrator"},
50 {"type":"TextWhitespace","value":"\n"},
51 {"type":"Comment","value":"#"},
52 {"type":"Keyword","value":"Requires"},
53 {"type":"TextWhitespace","value":" "},
54 {"type":"Comment","value":"-WrongParameter"},
55 {"type":"NameAttribute","value":" ParamValue"},
56 {"type":"TextWhitespace","value":"\n\n"},
57 {"type":"CommentMultiline","value":"\u003c#\n Multiline comment\n ."},
58 {"type":"LiteralStringDoc","value":"DESCRIPTION"},
59 {"type":"CommentMultiline","value":"\n This is a description\n#\u003e"},
60 {"type":"Text","value":"\n\n"},
61 {"type":"Comment","value":"# this is a comment"},
62 {"type":"Text","value":"\n\n"},
63 {"type":"KeywordDeclaration","value":"function"},
64 {"type":"TextWhitespace","value":" "},
65 {"type":"NameBuiltin","value":"test"},
66 {"type":"Text","value":" "},
67 {"type":"Punctuation","value":"{"},
68 {"type":"Text","value":" "},
69 {"type":"Punctuation","value":"}"},
70 {"type":"Text","value":"\n"},
71 {"type":"KeywordDeclaration","value":"class"},
72 {"type":"TextWhitespace","value":" "},
73 {"type":"NameBuiltin","value":"test "},
74 {"type":"Punctuation","value":"{}"},
75 {"type":"Text","value":"\n"},
76 {"type":"KeywordDeclaration","value":"class"},
77 {"type":"TextWhitespace","value":" "},
78 {"type":"NameBuiltin","value":"test2 :"},
79 {"type":"Text","value":" "},
80 {"type":"Name","value":"test"},
81 {"type":"Text","value":" "},
82 {"type":"Punctuation","value":"{"},
83 {"type":"Text","value":" "},
84 {"type":"Punctuation","value":"}"},
85 {"type":"Text","value":"\n\n"},
86 {"type":"LiteralStringHeredoc","value":"@\"\ndouble quoted "},
87 {"type":"NameVariable","value":"$MyVar"},
88 {"type":"LiteralStringHeredoc","value":" here string\n\"@"},
89 {"type":"Text","value":"\n\n"},
90 {"type":"LiteralStringHeredoc","value":"@\"\ndouble quoted "},
91 {"type":"NameVariable","value":"${MyVar}"},
92 {"type":"LiteralStringHeredoc","value":" here string\n\"@"},
93 {"type":"Text","value":"\n\n"},
94 {"type":"LiteralStringHeredoc","value":"@\"\ndouble quoted "},
95 {"type":"Punctuation","value":"$("},
96 {"type":"NameBuiltin","value":"Get-Stuff"},
97 {"type":"Text","value":" "},
98 {"type":"Name","value":"-Param1"},
99 {"type":"Text","value":" "},
100 {"type":"NameVariable","value":"$MyVar"},
101 {"type":"Text","value":" "},
102 {"type":"Punctuation","value":")"},
103 {"type":"LiteralStringHeredoc","value":" here string\n\"@"},
104 {"type":"Text","value":"\n\n"},
105 {"type":"LiteralStringHeredoc","value":"@'\nsingle quoted $(Get-Stuff -Param1 $MyVar ) here string\n'@"},
106 {"type":"Text","value":"\n\n"},
107 {"type":"LiteralStringSingle","value":"'Single quoted string $MyVar'"},
108 {"type":"Text","value":"\n"},
109 {"type":"LiteralStringDouble","value":"\"Double quoted string "},
110 {"type":"NameVariable","value":"$MyVar"},
111 {"type":"LiteralStringDouble","value":"\""},
112 {"type":"Text","value":"\n"},
113 {"type":"LiteralStringDouble","value":"\"Double quoted string "},
114 {"type":"Punctuation","value":"$("},
115 {"type":"NameBuiltin","value":"Get-Stuff"},
116 {"type":"Text","value":" "},
117 {"type":"Name","value":"-Param1"},
118 {"type":"Text","value":" "},
119 {"type":"NameVariable","value":"$MyVar"},
120 {"type":"Text","value":" "},
121 {"type":"Punctuation","value":")"},
122 {"type":"LiteralStringDouble","value":"\""},
123 {"type":"Text","value":"\n"},
124 {"type":"LiteralStringDouble","value":"\"Double quoted string "},
125 {"type":"NameVariable","value":"${var}"},
126 {"type":"LiteralStringDouble","value":"\""},
127 {"type":"Text","value":"\n\n"},
128 {"type":"NameVariable","value":"$HashTable"},
129 {"type":"Text","value":" "},
130 {"type":"Punctuation","value":"="},
131 {"type":"Text","value":" "},
132 {"type":"NameVariableMagic","value":"@"},
133 {"type":"Punctuation","value":"{"},
134 {"type":"Text","value":"\n "},
135 {"type":"LiteralStringSingle","value":"'Something'"},
136 {"type":"Text","value":" "},
137 {"type":"Punctuation","value":"="},
138 {"type":"Text","value":" "},
139 {"type":"NameVariable","value":"$Var"},
140 {"type":"Text","value":"\n "},
141 {"type":"LiteralStringSingle","value":"'Else'"},
142 {"type":"Text","value":" "},
143 {"type":"Punctuation","value":"="},
144 {"type":"Text","value":" "},
145 {"type":"LiteralStringSingle","value":"'string'"},
146 {"type":"Text","value":"\n"},
147 {"type":"Punctuation","value":"}"},
148 {"type":"Text","value":"\n\n"},
149 {"type":"NameVariable","value":"$myvar"},
150 {"type":"Punctuation","value":"."},
151 {"type":"LiteralStringSingle","value":"'property name in string'"},
152 {"type":"Text","value":"\n"},
153 {"type":"Punctuation","value":"["},
154 {"type":"NameConstant","value":"string"},
155 {"type":"Punctuation","value":"]::"},
156 {"type":"Name","value":"UseMethod"},
157 {"type":"Punctuation","value":"("},
158 {"type":"LiteralNumberFloat","value":"12.34"},
159 {"type":"Punctuation","value":")"},
160 {"type":"Text","value":"\n"},
161 {"type":"LiteralNumberFloat","value":"15"},
162 {"type":"Punctuation","value":"gb"},
163 {"type":"Text","value":"\n"},
164 {"type":"NameVariableMagic","value":"@"},
165 {"type":"Punctuation","value":"{}"},
166 {"type":"Text","value":"\n"},
167 {"type":"NameVariableMagic","value":"@"},
168 {"type":"Punctuation","value":"()"},
169 {"type":"Text","value":"\n"},
170 {"type":"NameVariableMagic","value":"$"},
171 {"type":"Punctuation","value":"()"},
172 {"type":"Text","value":"\n"},
173 {"type":"NameVariable","value":"$test"},
174 {"type":"Text","value":" "},
175 {"type":"Punctuation","value":"="},
176 {"type":"Text","value":" "},
177 {"type":"Name","value":"C:"},
178 {"type":"Punctuation","value":"\\"},
179 {"type":"Name","value":"test"},
180 {"type":"Text","value":"\n"},
181 {"type":"NameVariable","value":"$MyVar"},
182 {"type":"Text","value":" "},
183 {"type":"Punctuation","value":"="},
184 {"type":"Text","value":" "},
185 {"type":"NameBuiltin","value":"Get-Something"},
186 {"type":"Text","value":" "},
187 {"type":"Name","value":"-SwitchParam:"},
188 {"type":"NameVariableMagic","value":"$false"},
189 {"type":"Text","value":"\n"},
190 {"type":"NameVariable","value":"$MyVar"},
191 {"type":"Punctuation","value":"."},
192 {"type":"NameProperty","value":"property"},
193 {"type":"Text","value":"\n"},
194 {"type":"NameVariable","value":"$MyVar"},
195 {"type":"Punctuation","value":"."},
196 {"type":"NameProperty","value":"property"},
197 {"type":"Punctuation","value":"."},
198 {"type":"NameProperty","value":"property"},
199 {"type":"Punctuation","value":"."},
200 {"type":"NameProperty","value":"somemethod"},
201 {"type":"Punctuation","value":"()"},
202 {"type":"Text","value":"\n"},
203 {"type":"NameVariable","value":"$global:test"},
204 {"type":"Text","value":"\n"},
205 {"type":"NameVariableMagic","value":"$null"},
206 {"type":"Text","value":"\n"},
207 {"type":"NameVariableMagic","value":"$true"},
208 {"type":"Text","value":"\n"},
209 {"type":"NameVariableMagic","value":"$false"},
210 {"type":"Text","value":"\n\n"},
211 {"type":"KeywordDeclaration","value":"Configuration"},
212 {"type":"TextWhitespace","value":" "},
213 {"type":"NameBuiltin","value":"ConfigurationName\n"},
214 {"type":"Punctuation","value":"{"},
215 {"type":"Text","value":"\n "},
216 {"type":"NameBuiltin","value":"Import-DSCResource"},
217 {"type":"Text","value":" "},
218 {"type":"Name","value":"-ModuleName"},
219 {"type":"Text","value":" "},
220 {"type":"Name","value":"MyModule"},
221 {"type":"Text","value":"\n"},
222 {"type":"Punctuation","value":"}"},
223 {"type":"Text","value":"\n\n"},
224 {"type":"KeywordDeclaration","value":"function"},
225 {"type":"TextWhitespace","value":" "},
226 {"type":"NameBuiltin","value":"Get-Stuff"},
227 {"type":"Text","value":" "},
228 {"type":"Punctuation","value":"{"},
229 {"type":"Text","value":"\n "},
230 {"type":"Punctuation","value":"["},
231 {"type":"NameBuiltin","value":"CmdletBinding"},
232 {"type":"Punctuation","value":"("},
233 {"type":"NameAttribute","value":"SupportsShouldProcess"},
234 {"type":"Punctuation","value":"="},
235 {"type":"NameVariableMagic","value":"$true"},
236 {"type":"Punctuation","value":")]"},
237 {"type":"Text","value":"\n "},
238 {"type":"Keyword","value":"param"},
239 {"type":"Text","value":" "},
240 {"type":"Punctuation","value":"("},
241 {"type":"Text","value":"\n "},
242 {"type":"Punctuation","value":"["},
243 {"type":"NameBuiltin","value":"Parameter"},
244 {"type":"Punctuation","value":"("},
245 {"type":"NameAttribute","value":"Mandatory"},
246 {"type":"Punctuation","value":"="},
247 {"type":"NameVariableMagic","value":"$true"},
248 {"type":"Punctuation","value":","},
249 {"type":"Text","value":" "},
250 {"type":"NameAttribute","value":"DontShow"},
251 {"type":"Punctuation","value":")]"},
252 {"type":"Text","value":"\n "},
253 {"type":"Punctuation","value":"["},
254 {"type":"NameBuiltin","value":"ValidateNotNullOrEmpty"},
255 {"type":"Punctuation","value":"()]"},
256 {"type":"Text","value":"\n "},
257 {"type":"Punctuation","value":"["},
258 {"type":"NameBuiltin","value":"ValidateScript"},
259 {"type":"Punctuation","value":"({"},
260 {"type":"Text","value":" "},
261 {"type":"NameVariable","value":"$_"},
262 {"type":"Text","value":" "},
263 {"type":"Operator","value":"-ne"},
264 {"type":"Text","value":" "},
265 {"type":"NameVariableMagic","value":"$null"},
266 {"type":"Text","value":" "},
267 {"type":"Punctuation","value":"})]"},
268 {"type":"Text","value":"\n "},
269 {"type":"Punctuation","value":"["},
270 {"type":"NameBuiltin","value":"ValidateRange"},
271 {"type":"Punctuation","value":"("},
272 {"type":"LiteralNumberFloat","value":"0"},
273 {"type":"Punctuation","value":","},
274 {"type":"Text","value":" "},
275 {"type":"Punctuation","value":"["},
276 {"type":"NameConstant","value":"int"},
277 {"type":"Punctuation","value":"]::"},
278 {"type":"Name","value":"MaxValue"},
279 {"type":"Punctuation","value":")]"},
280 {"type":"Text","value":"\n "},
281 {"type":"Punctuation","value":"["},
282 {"type":"NameConstant","value":"Microsoft.PowerShell.Commands.WebRequestMethod"},
283 {"type":"Punctuation","value":"]"},
284 {"type":"NameVariable","value":"$Param1"},
285 {"type":"Text","value":" "},
286 {"type":"Punctuation","value":"="},
287 {"type":"Text","value":" "},
288 {"type":"LiteralStringSingle","value":"'Get'"},
289 {"type":"Text","value":"\n "},
290 {"type":"Punctuation","value":")"},
291 {"type":"Text","value":"\n\n "},
292 {"type":"Keyword","value":"Process"},
293 {"type":"Text","value":"\n "},
294 {"type":"Punctuation","value":"{"},
295 {"type":"Text","value":"\n "},
296 {"type":"Keyword","value":"if"},
297 {"type":"Text","value":" "},
298 {"type":"Punctuation","value":"("},
299 {"type":"NameVariable","value":"$MyVar"},
300 {"type":"Text","value":" "},
301 {"type":"Operator","value":"-lt"},
302 {"type":"Text","value":" "},
303 {"type":"Punctuation","value":"("},
304 {"type":"NameBuiltin","value":"Get-Date"},
305 {"type":"Punctuation","value":")."},
306 {"type":"NameProperty","value":"AddSeconds"},
307 {"type":"Punctuation","value":"(["},
308 {"type":"NameConstant","value":"int"},
309 {"type":"Punctuation","value":"]("},
310 {"type":"LiteralNumberFloat","value":"12.4"},
311 {"type":"Text","value":" "},
312 {"type":"Punctuation","value":"/"},
313 {"type":"Text","value":" "},
314 {"type":"LiteralNumberFloat","value":"2"},
315 {"type":"Punctuation","value":")))"},
316 {"type":"Text","value":" "},
317 {"type":"Punctuation","value":"{}"},
318 {"type":"Text","value":"\n "},
319 {"type":"Punctuation","value":"}"},
320 {"type":"Text","value":"\n"},
321 {"type":"Punctuation","value":"}"}
322]
View as plain text