MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / firstNode

Function firstNode

internal/rules/missing_effect_context.go:248–253  ·  view source on GitHub ↗
(nodes []*ast.Node)

Source from the content-addressed store, hash-verified

246 return nodes[0]
247}
248
249func findTransformationIndexContainingNode(flow *typeparser.PipingFlow, target *ast.Node) int {
250 if flow == nil || target == nil {
251 return -1
252 }
253 target = ast.SkipParentheses(target)
254 for i := range flow.Transformations {
255 transformation := flow.Transformations[i]
256 callee := ast.SkipParentheses(transformation.Callee)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected