Skip to content

Commit

Permalink
Project import generated by Copybara. (#1)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: f5a7e861a026c536638115eb16d82dcb2821e2f7

Co-authored-by: Copybara Bot <[email protected]>
  • Loading branch information
pqn and Copybara Bot authored Mar 8, 2023
1 parent c644840 commit a01c9c8
Show file tree
Hide file tree
Showing 15 changed files with 1,362 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

71 changes: 71 additions & 0 deletions goldens/test.go.golden
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
177 changes: 177 additions & 0 deletions goldens/test.js.golden
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 {};
Loading

0 comments on commit a01c9c8

Please sign in to comment.