<Keyword>package</Keyword><Normal Text> </Normal Text><Imports>org</Imports><Symbol>.</Symbol><Imports>example</Imports><br/>
<Normal Text></Normal Text><br/>
<Keyword>fun</Keyword><Normal Text> </Normal Text><Function>main</Function><Symbol>(</Symbol><Variable>args</Variable><Symbol>:</Symbol><Normal Text> </Normal Text><Data Type>Array</Data Type><Normal Text><</Normal Text><Variable>String</Variable><Normal Text>></Normal Text><Symbol>)</Symbol><Normal Text> </Normal Text><Symbol>{</Symbol><br/>
<Normal Text>    </Normal Text><Keyword>val</Keyword><Normal Text> </Normal Text><Variable>sum1</Variable><Normal Text> </Normal Text><Symbol>=</Symbol><Normal Text> add</Normal Text><Symbol>(</Symbol><Decimal>5</Decimal><Symbol>,</Symbol><Normal Text> </Normal Text><Decimal>6</Decimal><Symbol>)</Symbol><br/>
<Normal Text>    println</Normal Text><Symbol>(</Symbol><Normal Text>sum1</Normal Text><Symbol>)</Symbol><br/>
<Normal Text>    println</Normal Text><Symbol>(</Symbol><String>"""</String><br/>
<String Interpolation>$$a${</String Interpolation><Decimal>1</Decimal><Symbol>+</Symbol><Decimal>2</Decimal><String Interpolation>}</String Interpolation><String Char>\$</String Char><String Interpolation>$</String Interpolation><br/>
<String>abc</String><br/>
<String>"""</String><Symbol>)</Symbol><br/>
<Symbol>}</Symbol><br/>
<Normal Text> </Normal Text><br/>
<Comment>/**</Comment><br/>
<Comment>* add function with two, three or four integer arguments</Comment><br/>
<Comment>* c : default argument is 0</Comment><br/>
<Comment>* d : default argument is 0</Comment><br/>
<Comment>*/</Comment><br/>
<Keyword>fun</Keyword><Normal Text> </Normal Text><Function>add</Function><Symbol>(</Symbol><Variable>a</Variable><Symbol>:</Symbol><Data Type>Int</Data Type><Symbol>,</Symbol><Normal Text> </Normal Text><Variable>b</Variable><Symbol>:</Symbol><Data Type>Int</Data Type><Symbol>,</Symbol><Normal Text> </Normal Text><Variable>c</Variable><Symbol>:</Symbol><Data Type>Int</Data Type><Normal Text> </Normal Text><Symbol>=</Symbol><Normal Text> </Normal Text><Decimal>0</Decimal><Symbol>,</Symbol><Normal Text> </Normal Text><Variable>d</Variable><Symbol>:</Symbol><Data Type>Float</Data Type><Normal Text> </Normal Text><Symbol>=</Symbol><Normal Text> </Normal Text><Float>12e10F</Float><Symbol>):</Symbol><Normal Text> </Normal Text><Data Type>Int</Data Type><Normal Text> </Normal Text><Symbol>{</Symbol><br/>
<Normal Text>    </Normal Text><Keyword>return</Keyword><Normal Text> a </Normal Text><Symbol>+</Symbol><Normal Text> b </Normal Text><Symbol>+</Symbol><Normal Text> c </Normal Text><Symbol>+</Symbol><Normal Text> d</Normal Text><br/>
<Symbol>}</Symbol><Normal Text> </Normal Text><br/>
<Normal Text></Normal Text><br/>
<Keyword>public</Keyword><Normal Text> </Normal Text><Keyword>class</Keyword><Normal Text> MyTest </Normal Text><Symbol>{</Symbol><br/>
<Normal Text>    </Normal Text><Keyword>lateinit</Keyword><Normal Text> </Normal Text><Keyword>var</Keyword><Normal Text> </Normal Text><Variable>subject</Variable><Symbol>:</Symbol><Normal Text> TestSubject</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Keyword>val</Keyword><Normal Text> </Normal Text><Variable>dyn</Variable><Symbol>:</Symbol><Normal Text> </Normal Text><Keyword>dynamic</Keyword><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Annotation>@get</Annotation><Symbol>:</Symbol><Annotation>Rule</Annotation><Normal Text> </Normal Text><Keyword>val</Keyword><Normal Text> </Normal Text><Variable>tempFolder</Variable><Normal Text> </Normal Text><Symbol>=</Symbol><Normal Text> TemporaryFolder</Normal Text><Symbol>()</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Annotation>@set</Annotation><Symbol>:</Symbol><Annotation>[Inject VisibleForTesting]</Annotation><br/>
<Normal Text>    </Normal Text><Keyword>var</Keyword><Normal Text> </Normal Text><Variable>collaborator</Variable><Symbol>:</Symbol><Normal Text> Collaborator</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Annotation>@SetUp</Annotation><Normal Text> </Normal Text><Keyword>fun</Keyword><Normal Text> </Normal Text><Function>setup</Function><Symbol>()</Symbol><Normal Text> </Normal Text><Symbol>{</Symbol><br/>
<Normal Text>        subject </Normal Text><Symbol>=</Symbol><Normal Text> TestSubject</Normal Text><Symbol>()</Symbol><br/>
<Normal Text>    </Normal Text><Symbol>}</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Keyword>fun</Keyword><Normal Text> </Normal Text><Annotation>@receiver</Annotation><Symbol>:</Symbol><Annotation>Fancy</Annotation><Normal Text> </Normal Text><Function>String</Function><Symbol>.</Symbol><Function>myExtension</Function><Symbol>()</Symbol><Normal Text> </Normal Text><Symbol>{</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Symbol>}</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Annotation>@Test</Annotation><Normal Text> </Normal Text><Keyword>fun</Keyword><Normal Text> </Normal Text><Function>test</Function><Symbol>()</Symbol><Normal Text> </Normal Text><Symbol>{</Symbol><br/>
<Normal Text>        subject</Normal Text><Symbol>.</Symbol><Normal Text>method</Normal Text><Symbol>()</Symbol><Normal Text>  </Normal Text><Comment>// dereference directly</Comment><br/>
<Normal Text>    </Normal Text><Symbol>}</Symbol><br/>
<Symbol>}</Symbol><br/>
<Normal Text></Normal Text><br/>
<Keyword>import</Keyword><Normal Text> </Normal Text><Comment>/* comment */</Comment><Normal Text> </Normal Text><Imports>foo</Imports><Symbol>.</Symbol><Imports>Foo</Imports><Normal Text> </Normal Text><Comment>// comment</Comment><br/>
<Keyword>class</Keyword><Normal Text> </Normal Text><Comment>/* comment */</Comment><Normal Text> Foo </Normal Text><Symbol>{</Symbol><br/>
<Normal Text>    </Normal Text><Keyword>fun</Keyword><Normal Text> </Normal Text><Comment>/* comment */</Comment><Normal Text> </Normal Text><Function>foo</Function><Symbol>(</Symbol><Comment>/* comment */</Comment><Symbol>)</Symbol><Normal Text> </Normal Text><Symbol>{</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Symbol>}</Symbol><br/>
<Normal Text></Normal Text><br/>
<Normal Text>    </Normal Text><Keyword>val</Keyword><Normal Text> </Normal Text><Comment>/* comment */</Comment><Normal Text> </Normal Text><Variable>bar</Variable><Normal Text> </Normal Text><Symbol>=</Symbol><Normal Text> </Normal Text><Decimal>1</Decimal><br/>
<Normal Text>    </Normal Text><Keyword>var</Keyword><Normal Text> </Normal Text><Comment>/* comment */</Comment><Normal Text> </Normal Text><Variable>baz</Variable><Normal Text> </Normal Text><Symbol>=</Symbol><Normal Text> </Normal Text><Decimal>2</Decimal><br/>
<Symbol>}</Symbol><br/>
