File tree Expand file tree Collapse file tree 8 files changed +365
-1
lines changed
Tests/External/Plugins/ASCompletion.Tests Expand file tree Collapse file tree 8 files changed +365
-1
lines changed Original file line number Diff line number Diff line change 131
131
<EmbeddedResource Include =" Test Files\haxe\MultiLineStringsTest.hx" />
132
132
<EmbeddedResource Include =" Test Files\haxe\EscapedStringsTest.hx" />
133
133
<EmbeddedResource Include =" Test Files\haxe\EnumsTest.hx" />
134
+ <EmbeddedResource Include =" Test Files\haxe\AbstractsTest.hx" />
135
+ <EmbeddedResource Include =" Test Files\haxe\RegionsTest.hx" />
136
+ <EmbeddedResource Include =" Test Files\haxe\FunctionTypesTest.hx" />
137
+ <EmbeddedResource Include =" Test Files\haxe\FunctionTypesWithSubTypesTest.hx" />
138
+ <EmbeddedResource Include =" Test Files\haxe\CommentsTest.hx" />
139
+ <EmbeddedResource Include =" Test Files\haxe\SpecialClassesCommentsTest.hx" />
134
140
</ItemGroup >
135
141
<ItemGroup >
136
142
<ProjectReference Include =" ..\..\..\..\External\Plugins\AS2Context\AS2Context.csproj" >
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change
1
+ package ;
2
+
3
+ abstract AbstractInt (Int ) {
4
+ inline public function new (i : Int ) {
5
+ this = i ;
6
+ }
7
+ }
8
+
9
+ abstract MyAbstract (Int ) from Int to Int {
10
+ inline function new (i : Int ) {
11
+ this = i ;
12
+ }
13
+ }
Original file line number Diff line number Diff line change 1
1
package ;
2
2
3
+ /**
4
+ * Some custom comments
5
+ */
3
6
class Test
4
7
{
5
- public function new ()
8
+ // /
9
+ // / Java Style comments
10
+ // /
11
+ public function new () {}
12
+
13
+ /**
14
+ * Some method documentation
15
+ */
16
+ public function testAdd (arg1 : Int , arg2 : Int ): Int
6
17
{
18
+ return arg1 + arg2 ; // Just some single line comment as well for code coverage
7
19
}
8
20
}
Original file line number Diff line number Diff line change
1
+ public function new ()
2
+ {
3
+ var functionType : Dynamic -> Dynamic ;
4
+ var functionType2 : Int -> Int -> Int ;
5
+ }
Original file line number Diff line number Diff line change
1
+ public function new ()
2
+ {
3
+ var functionType : (Dynamic -> Dynamic )-> Dynamic ;
4
+ var functionType2 : ((Dynamic -> Dynamic )-> Int -> )Int ;
5
+ }
Original file line number Diff line number Diff line change
1
+ package ;
2
+
3
+ class Test
4
+ {
5
+ // {region Fields
6
+ private var _test : String ;
7
+ // }endregion
8
+
9
+ // #region invalid
10
+ private var _test2 : String ;
11
+ // #endregion
12
+
13
+ private function regionInside (): String
14
+ {
15
+ // {region Complex stuff
16
+ // this is really complex!
17
+ // }endregion
18
+ }
19
+ }
Original file line number Diff line number Diff line change
1
+ package ;
2
+
3
+ /**
4
+ * Some typedef custom comments
5
+ */
6
+ typedef TypedefTest
7
+ {
8
+ // /
9
+ // / Java Style comments
10
+ // /
11
+ var age : Int ;
12
+ }
13
+
14
+ /**
15
+ * Some enum custom comments
16
+ */
17
+ enum EnumTest
18
+ {
19
+ /**
20
+ * Enum element comments
21
+ */
22
+ Foo ;
23
+ }
24
+
25
+ /**
26
+ * Some abstract custom comments
27
+ */
28
+ abstract AbstractInt (Int ) {
29
+ // /
30
+ // / Java Style comments
31
+ // /
32
+ inline public function new (i : Int ) {
33
+ this = i ;
34
+ }
35
+ }
You can’t perform that action at this time.
0 commit comments