FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
hack-codegen/tests/CodegenTraitTest.codegen at main · hhvm/hack-codegen · GitHub
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
hhvm
/
hack-codegen
Public archive
Notifications
You must be signed in to change notification settings
Fork
92
Star
348
Code
Issues
5
Pull requests
2
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
hack-codegen
/
tests
/
CodegenTraitTest.codegen
Copy path
More file actions
More file actions
Latest commit
History
History
History
57 lines (47 loc) · 1.22 KB
Breadcrumbs
hack-codegen
/
tests
/
CodegenTraitTest.codegen
Copy path
File metadata and controls
57 lines (47 loc) · 1.22 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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 RequiredClass;
require implements RequiredInterface;
use DemoTrait;
// 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 {
}
Back
|
FazBrowse Home
|
New Git URL