MCPcopy Create free account
hub / github.com/coder/guts / Commentable

Interface Commentable

bindings/comments.go:10–13  ·  view source on GitHub ↗

Commentable indicates if the AST node supports adding comments. Any number of comments are supported and can be attached to a typescript AST node.

Source from the content-addressed store, hash-verified

8// Commentable indicates if the AST node supports adding comments.
9// Any number of comments are supported and can be attached to a typescript AST node.
10type Commentable interface {
11 AppendComment(comment SyntheticComment)
12 Comments() []SyntheticComment
13}
14
15// SyntheticComment is the state of a comment for a given AST node.
16// See the compiler for how these are serialized.

Callers 3

TestSyntheticCommentsFunction · 0.65
ToTypescriptNodeMethod · 0.65
VisitMethod · 0.65

Implementers 1

SupportCommentsbindings/comments.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…