-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Project import generated by Copybara. (#1)
GitOrigin-RevId: f5a7e861a026c536638115eb16d82dcb2821e2f7 Co-authored-by: Copybara Bot <[email protected]>
- Loading branch information
Showing
15 changed files
with
1,362 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
Name: Pattern0 | ||
Doc: | ||
// Pattern 0. | ||
Definition (definition.class): | ||
type Pattern0 struct { | ||
a string | ||
} | ||
|
||
Name: Pattern1 | ||
Doc: | ||
// Pattern 1. | ||
Definition (definition.interface): | ||
type Pattern1 interface { | ||
a() string | ||
} | ||
|
||
Name: Pattern2 | ||
Parameters: () | ||
Definition (definition.function): | ||
func Pattern2() {} | ||
|
||
Name: Method | ||
Parameters: (string) | ||
Doc: | ||
// Comments | ||
// here. | ||
Definition (definition.method): | ||
func (p *Pattern0) Method(string) {} | ||
Lineage: [*Pattern0] | ||
|
||
Name: Method2 | ||
Parameters: (a string) | ||
Definition (definition.method): | ||
func (p Pattern0) Method2(a string) string { | ||
Pattern2() | ||
s := &Pattern0{} | ||
s.Method("") | ||
((*Pattern0)(s)).Method("") | ||
var s2 any | ||
s2.(*Pattern0).Method("") | ||
return a | ||
} | ||
Lineage: [Pattern0] | ||
|
||
Name: Pattern2 | ||
Parameters: () | ||
Reference (reference.call): | ||
Pattern2() | ||
|
||
Name: Pattern0 | ||
Reference (reference.class): | ||
Pattern0{} | ||
|
||
Name: Method | ||
Parameters: ("") | ||
Reference (reference.call): | ||
s.Method("") | ||
|
||
Name: Method | ||
Parameters: ("") | ||
Reference (reference.call): | ||
((*Pattern0)(s)).Method("") | ||
|
||
Name: Method | ||
Parameters: ("") | ||
Reference (reference.call): | ||
s2.(*Pattern0).Method("") | ||
|
||
Name: Alias | ||
Definition (definition.type): | ||
Alias string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
Name: Pattern1a | ||
Doc: | ||
/** | ||
* Pattern 1a comment. | ||
*/ | ||
Definition (definition.class): | ||
class Pattern1a { | ||
constructor() {} | ||
/** | ||
* Pattern 0 comment. | ||
*/ | ||
pattern0(param1) { | ||
return param1; | ||
} | ||
} | ||
|
||
Name: pattern0 | ||
Parameters: (param1) | ||
Doc: | ||
/** | ||
* Pattern 0 comment. | ||
*/ | ||
Definition (definition.method): | ||
pattern0(param1) { | ||
return param1; | ||
} | ||
Lineage: [Pattern1a] | ||
|
||
Name: Pattern1b | ||
Doc: | ||
// Pattern 1b comment. | ||
Definition (definition.class): | ||
export class Pattern1b {} | ||
|
||
Name: pattern2 | ||
Parameters: (param1) | ||
Doc: | ||
// Pattern 2 comment. | ||
// More pattern 2 comment. | ||
/* Even more | ||
* pattern 2 comment. | ||
*/ | ||
Definition (definition.function): | ||
function pattern2(param1) { | ||
return param1; | ||
} | ||
|
||
Name: f | ||
Parameters: () | ||
Doc: | ||
// f comment. | ||
Definition (definition.function): | ||
export function f() {} | ||
|
||
Name: g | ||
Parameters: () | ||
Doc: | ||
// g comment. | ||
Definition (definition.function): | ||
function* g() {} | ||
|
||
Name: pattern3 | ||
Parameters: (param1) | ||
Doc: | ||
/** | ||
* Pattern 3 comment. | ||
*/ | ||
Definition (definition.function): | ||
export default function* pattern3(param1) { | ||
yield param1; | ||
} | ||
|
||
Name: pattern4a | ||
Parameters: (param1) | ||
Doc: | ||
/** | ||
* Pattern 4a comment. | ||
*/ | ||
Definition (definition.function): | ||
const pattern4a = function (param1) { | ||
return param1; | ||
}; | ||
|
||
Name: pattern4b | ||
Parameters: (param1) | ||
Doc: | ||
/** | ||
* Pattern 4b comment. | ||
*/ | ||
Definition (definition.function): | ||
export const pattern4b = (param1) => {}; | ||
|
||
Name: pattern5a | ||
Parameters: (param1) | ||
Doc: | ||
/** | ||
* Pattern 5a comment. | ||
*/ | ||
Definition (definition.function): | ||
export var pattern5a = function (param1) { | ||
return param1; | ||
}; | ||
|
||
Name: pattern5b | ||
Parameters: (param1) | ||
Doc: | ||
/** | ||
* Pattern 5b comment. | ||
*/ | ||
Definition (definition.function): | ||
var pattern5b = (param1) => {}; | ||
|
||
Name: pattern6a | ||
Parameters: (a) | ||
Doc: | ||
// Pattern 6a comment. | ||
Definition (definition.function): | ||
pattern6a = function(a) {}; | ||
|
||
Name: pattern6b | ||
Parameters: (b) | ||
Doc: | ||
// Pattern 6b comment. | ||
Definition (definition.function): | ||
pattern6b = (b) => {}; | ||
|
||
Name: member | ||
Parameters: (c) | ||
Doc: | ||
// Pattern 6c comment. | ||
Definition (definition.function): | ||
pattern6c.member = function(c) {}; | ||
|
||
Name: member | ||
Parameters: (d) | ||
Doc: | ||
// Pattern 6d comment. | ||
Definition (definition.function): | ||
pattern6d.member = (d) => {}; | ||
|
||
Name: pattern7a | ||
Parameters: (a) | ||
Doc: | ||
// Pattern 7a comment. | ||
Definition (definition.function): | ||
pattern7a: function(a) {} | ||
|
||
Name: pattern7b | ||
Parameters: (b) | ||
Doc: | ||
// Pattern 7b comment. | ||
Definition (definition.function): | ||
pattern7b: (b) => {} | ||
|
||
Name: pattern8 | ||
Reference (reference.call): | ||
pattern8(a) | ||
|
||
Name: member | ||
Reference (reference.call): | ||
pattern9.member(a) | ||
|
||
Name: Pattern10 | ||
Reference (reference.class): | ||
new Pattern10(a) | ||
|
||
Name: Pattern11 | ||
Doc: | ||
// Comment | ||
Definition (definition.class): | ||
const Pattern11 = class Ignore {}; | ||
|
||
Name: Pattern12 | ||
Doc: | ||
// Comment | ||
Definition (definition.class): | ||
export var Pattern12 = class Ignore {}; |
Oops, something went wrong.