forked from hhvm/hack-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodegenTraitTestCase.codegen
More file actions
57 lines (47 loc) · 1.22 KB
/
CodegenTraitTestCase.codegen
File metadata and controls
57 lines (47 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@generated
!@#$%codegentest:testDemo
/**
* doc-doc-doc!
*/
trait DemoInternal {
require extends EntSchema;
require implements IEntSchemaBase;
use EntProvisionalMode;
// Generated from Whatever::Method()
use WhateverTrait;
use Useless;
const MAX_SIZE = 256;
/**
* Default name of Ent.
*/
const DEFAULT_NAME = 'MyEnt';
const PI = 3.1415;
protected string $text;
private ?int $id = 12345;
/* BEGIN MANUAL SECTION DemoInternal_header */
// Insert additional consts and vars here
/* END MANUAL SECTION */
/**
* This is a 76 characters comment to test the splitting based on
* indentation.
*/
protected function genX(): Awaitable<int> {
/* BEGIN MANUAL SECTION DemoInternal::genX */
// your code here
/* END MANUAL SECTION */
}
/* BEGIN MANUAL SECTION DemoInternal_footer */
// Insert additional methods here
/* END MANUAL SECTION */
}
!@#$%codegentest:testDocblock
/**
* Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
* tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
* quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
* consequat.
* Understood?
* Yes!
*/
trait TestDocblockInternal {
}