titles.expect.txt 1.1 KB

12345678910111213141516171819
  1. <span class="hljs-keyword">namespace</span> <span class="hljs-title">Foo</span> <span class="hljs-comment">// namespace</span>
  2. {
  3. <span class="hljs-keyword">public</span> <span class="hljs-keyword">class</span> <span class="hljs-title">Greet</span> : <span class="hljs-title">Base</span> <span class="hljs-comment">// class</span>
  4. {
  5. <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-title">Greet</span>(<span class="hljs-params"><span class="hljs-keyword">string</span> who</span>) <span class="hljs-comment">// function</span>
  6. </span>{
  7. Who = who;
  8. }
  9. <span class="hljs-function"><span class="hljs-keyword">int</span>[] <span class="hljs-title">f</span>(<span class="hljs-params"><span class="hljs-keyword">int</span> val = <span class="hljs-number">0</span></span>)
  10. </span>{
  11. <span class="hljs-keyword">new</span> Type();
  12. <span class="hljs-keyword">return</span> getType();
  13. <span class="hljs-keyword">throw</span> getError();
  14. <span class="hljs-keyword">await</span> Stuff();
  15. }
  16. }
  17. }