You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/uniast-en.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -249,6 +249,7 @@ Function type AST Node entity, corresponding to [NodeType] as FUNC, including fu
249
249
"EndOffset": 3573,
250
250
"Content": "// BindSession binds the session with current goroutine\nfunc (self *SessionManager) BindSession(Identity SessionIdentity, s Session) {\n\tshard : = self.shards[uint64(Identity)%uint64(self.opts.ShardNumber)]\n\n\tshard.Store(Identity, s)\n\n\tif self.opts.EnableImplicitlyTransmitAsync {\n\t\ttransmitSessionIdentity(Identity)\n\t}\n}",
251
251
"Signature": "func (self *SessionManager) BindSession(Identity SessionIdentity, s Session)",
252
+
"TypeParams": [],
252
253
"Receiver": {
253
254
"IsPointer": true,
254
255
"Type": {
@@ -334,6 +335,8 @@ Function type AST Node entity, corresponding to [NodeType] as FUNC, including fu
334
335
335
336
- Signature: Function signature, including function name, parameters, return values, etc.
336
337
338
+
- TypeParams: Generic type parameters (Dependency structure)
339
+
337
340
- IsInterfaceMethod: Whether it is an interface method -- Here abcoder parse collects InterfaceMethod for easier LLM understanding, but it is not considered a language entity in write
338
341
339
342
@@ -420,9 +423,8 @@ Type definition, [NodeType] is TYPE, including type definitions in specific lang
420
423
"StartOffset": 725,
421
424
"EndOffset": 1027,
422
425
"Content": "// Session represents a local storage for one session\ntype Session interface {\n\t// IsValid tells if the session is valid at present\n\tIsValid() bool\n\n\t// Get returns value for specific key\n\tGet(key interface{}) interface{}\n\n\t// WithValue sets value for specific key,and return newly effective session\n\tWithValue(key interface{}, val interface{}) Session\n}",
423
-
"InlineStruct": [
424
-
{} // dependency
425
-
],
426
+
"InlineStruct": [],
427
+
"TypeParams": [],
426
428
"Methods": {
427
429
"Get": {
428
430
"ModPath": "github.com/cloudwego/localsession",
@@ -475,6 +477,7 @@ Type definition, [NodeType] is TYPE, including type definitions in specific lang
475
477
476
478
- Reason: In some languages like Golang, methods of nested sub-structs are inherited by the parent struct, so they are distinguished from general sub-structs to facilitate tracing all methods owned by the type
477
479
480
+
- TypeParams: Generic type parameters (Dependency structure)
478
481
479
482
- Methods: All method Identities corresponding to the struct. The key is the method name, and the value is the function Identity.
"Content": "// Session represents a local storage for one session\ntype Session interface {\n\t// IsValid tells if the session is valid at present\n\tIsValid() bool\n\n\t// Get returns value for specific key\n\tGet(key interface{}) interface{}\n\n\t// WithValue sets value for specific key,and return newly effective session\n\tWithValue(key interface{}, val interface{}) Session\n}",
0 commit comments