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
// The interface *mostly* isn't used... except for in the return type of a speciated function which can be used to do golang-native type switches.
42
42
//
43
+
// The interface also includes a requirement for an errorless primitive access method (such as `String() string`)
44
+
// if our representation strategy is one that has that semantic (e.g., stringprefix repr does).
45
+
//
43
46
// A note about index: in all cases the index of a member type is used, we increment it by one, to avoid using zero.
44
47
// We do this because it's desirable to reserve the zero in the 'tag' field (if we generate one) as a sentinel value
45
48
// (see further comments in the EmitNodeAssemblerType function);
46
49
// and since we do it in that one case, it's just as well to do it uniformly.
47
50
doTemplate(`
48
51
{{- if Comments -}}
49
-
// {{ .Type | TypeSymbol }} matches the IPLD Schema type "{{ .Type.Name }}". It has {{ .Type.TypeKind }} type-kind, and may be interrogated like {{ .Kind }} kind.
52
+
// {{ .Type | TypeSymbol }} matches the IPLD Schema type "{{ .Type.Name }}".
53
+
// {{ .Type | TypeSymbol }} has {{ .Type.TypeKind }} typekind, which means its data model behaviors are that of a {{ .Kind }} kind.
0 commit comments