github.com/evanw/esbuild/internal/js_parser.parser.exprCanBeRemovedIfUnused (method)
34 uses
github.com/evanw/esbuild/internal/js_parser (current package)
js_parser.go#L7155: replacementCanBeRemoved := p.exprCanBeRemovedIfUnused(replacement)
js_parser.go#L7217: if replacementCanBeRemoved && p.exprCanBeRemovedIfUnused(e.Expr) {
js_parser.go#L7246: } else if !p.exprCanBeRemovedIfUnused(e.Left) {
js_parser.go#L7379: if replacementCanBeRemoved && p.exprCanBeRemovedIfUnused(expr) {
js_parser.go#L7684: if p.exprCanBeRemovedIfUnused(s.Test) {
js_parser.go#L7755: if p.exprCanBeRemovedIfUnused(e.Test) {
js_parser.go#L7846: if p.exprCanBeRemovedIfUnused(e.Test) && p.exprCanBeRemovedIfUnused(y.Target) {
js_parser.go#L7884: if _, ok := binary.Right.Data.(*js_ast.ENull); ok && p.exprCanBeRemovedIfUnused(binary.Left) && valuesLookTheSame(binary.Left.Data, e.No.Data) {
js_parser.go#L7889: if _, ok := binary.Left.Data.(*js_ast.ENull); ok && p.exprCanBeRemovedIfUnused(binary.Right) && valuesLookTheSame(binary.Right.Data, e.No.Data) {
js_parser.go#L7895: if _, ok := binary.Right.Data.(*js_ast.ENull); ok && p.exprCanBeRemovedIfUnused(binary.Left) && valuesLookTheSame(binary.Left.Data, e.Yes.Data) {
js_parser.go#L7900: if _, ok := binary.Left.Data.(*js_ast.ENull); ok && p.exprCanBeRemovedIfUnused(binary.Right) && valuesLookTheSame(binary.Right.Data, e.Yes.Data) {
js_parser.go#L10689: if p.exprCanBeRemovedIfUnused(e.Value) {
js_parser.go#L12164: if !p.exprCanBeRemovedIfUnused(s.Value) {
js_parser.go#L12173: if decl.Value != nil && !p.exprCanBeRemovedIfUnused(*decl.Value) {
js_parser.go#L12184: if !p.exprCanBeRemovedIfUnused(*s.Value.Expr) {
js_parser.go#L12214: if class.Extends != nil && !p.exprCanBeRemovedIfUnused(*class.Extends) {
js_parser.go#L12219: if !p.exprCanBeRemovedIfUnused(property.Key) {
js_parser.go#L12222: if property.Value != nil && !p.exprCanBeRemovedIfUnused(*property.Value) {
js_parser.go#L12225: if property.Initializer != nil && !p.exprCanBeRemovedIfUnused(*property.Initializer) {
js_parser.go#L12240: if item.DefaultValue != nil && !p.exprCanBeRemovedIfUnused(*item.DefaultValue) {
js_parser.go#L12247: if !property.IsSpread && !p.exprCanBeRemovedIfUnused(property.Key) {
js_parser.go#L12253: if property.DefaultValue != nil && !p.exprCanBeRemovedIfUnused(*property.DefaultValue) {
js_parser.go#L12262: func (p *parser) exprCanBeRemovedIfUnused(expr js_ast.Expr) bool {
js_parser.go#L12322: return p.exprCanBeRemovedIfUnused(e.Test) && p.exprCanBeRemovedIfUnused(e.Yes) && p.exprCanBeRemovedIfUnused(e.No)
js_parser.go#L12326: if !p.exprCanBeRemovedIfUnused(item) {
js_parser.go#L12338: if property.Value != nil && !p.exprCanBeRemovedIfUnused(*property.Value) {
js_parser.go#L12349: if !p.exprCanBeRemovedIfUnused(arg) {
js_parser.go#L12361: if !p.exprCanBeRemovedIfUnused(arg) {
js_parser.go#L12373: return p.exprCanBeRemovedIfUnused(e.Value)
js_parser.go#L12382: return p.exprCanBeRemovedIfUnused(e.Left) && p.exprCanBeRemovedIfUnused(e.Right)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |