FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
hack-codegen/test/CodegenMethodTestCase.codegen at master · Daniel15/hack-codegen · GitHub
Daniel15
/
hack-codegen
Public
forked from
hhvm/hack-codegen
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
hack-codegen
/
test
/
CodegenMethodTestCase.codegen
Copy path
More file actions
More file actions
Latest commit
History
History
History
41 lines (34 loc) · 973 Bytes
Breadcrumbs
hack-codegen
/
test
/
CodegenMethodTestCase.codegen
Copy path
File metadata and controls
41 lines (34 loc) · 973 Bytes
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
@generated
!@#$%codegentest:testAbstractProtectedAndParams
abstract protected function getSchema(string $name);
!@#$%codegentest:testAsync
public async function genFoo() {
}
!@#$%codegentest:testConstructor
public function __construct(string $name) {
$this->name = $name;
}
!@#$%codegentest:testDocBlockCommentsWrap
/**
* xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
* (Generated from EntTestSchema::getFields()['name'])
*/
public function getName(): string {
return $this->name;
}
!@#$%codegentest:testManualSection
public function genProprietorName(): string {
/* BEGIN MANUAL SECTION Facebook\HackCodegen\EntBlindPig::genProprietorName */
// insert your code here
/* END MANUAL SECTION */
}
!@#$%codegentest:testPrivateAndStaticWithEmptyBody
private static function doNothing() {
}
!@#$%codegentest:testSimpleGetter
/**
* Return the name of the user.
*/
public function getName(): string {
return $this->name;
}
Back
|
FazBrowse Home
|
New Git URL