MCPcopy Create free account
hub / github.com/microsoft/typescript-go / typesAreSameReference

Function typesAreSameReference

internal/checker/nodebuilderimpl.go:469–471  ·  view source on GitHub ↗
(a, b *Type)

Source from the content-addressed store, hash-verified

467}
468
469func typesAreSameReference(a, b *Type) bool {
470 return a == b || a.symbol != nil && a.symbol == b.symbol || a.alias != nil && a.alias == b.alias
471}
472
473func (b *NodeBuilderImpl) setCommentRange(node *ast.Node, range_ *ast.Node) {
474 if range_ != nil && b.ctx.enclosingFile != nil && b.ctx.enclosingFile == ast.GetSourceFileOfNode(range_) {

Callers 1

mapToTypeNodesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected