- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for IsMethod (0.15 sec)
-
src/cmd/compile/internal/typecheck/subr.go
var f *types.Field path, _ := dotpath(sl.field.Sym, t, &f, false) if path == nil { continue } // dotpath may have dug out arbitrary fields, we only want methods. if !f.IsMethod() { continue } // add it to the base type method list f = f.Copy() f.Embedded = 1 // needs a trampoline for _, d := range path { if d.field.Type.IsPtr() { f.Embedded = 2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 19:45:58 UTC 2023 - 20.2K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
// End returns the offset of the first byte immediately after this field. func (f *Field) End() int64 { return f.Offset + f.Type.width } // IsMethod reports whether f represents a method rather than a struct field. func (f *Field) IsMethod() bool { return f.Type.kind == TFUNC && f.Type.Recv() != nil } // fields is a pointer to a slice of *Field.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/expr.go
} else { base.Errorf("unknown field '%v' in struct literal of type %v", sym, typ) } return nil } var f *types.Field p, _ := dotpath(sym, typ, &f, true) if p == nil || f.IsMethod() { base.Errorf("unknown field '%v' in struct literal of type %v", sym, typ) return nil } // dotpath returns the parent embedded types in reverse order. var ep []string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 23.1K bytes - Viewed (0) -
src/go/printer/nodes.go
// multiple lines. func (p *printer) selectorExpr(x *ast.SelectorExpr, depth int, isMethod bool) bool { p.expr1(x.X, token.HighestPrec, depth) p.print(token.PERIOD) if line := p.lineFor(x.Sel.Pos()); p.pos.IsValid() && p.pos.Line < line { p.print(indent, newline) p.setPos(x.Sel.Pos()) p.print(x.Sel) if !isMethod { p.print(unindent) } return true } p.setPos(x.Sel.Pos())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/DoublesMethodsForWeb.java
*/ package com.google.common.primitives; import jsinterop.annotations.JsMethod; import jsinterop.annotations.JsPackage; /** Web specializations for {@link Doubles} methods. */ public abstract class DoublesMethodsForWeb { @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL) public static native double min(double... array); @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Oct 26 00:50:12 UTC 2023 - 1K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java
return toPrecision(value, 4); } @JsMethod(name = "Number.prototype.toPrecision.call", namespace = JsPackage.GLOBAL) private static native String toPrecision(double value, int precision); @JsMethod static native boolean stringIsNullOrEmpty(@Nullable String string) /*-{ return !string; }-*/; @JsMethod static native String nullToEmpty(@Nullable String string) /*-{
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon May 27 13:56:56 UTC 2024 - 2K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/IntsMethodsForWeb.java
*/ package com.google.common.primitives; import jsinterop.annotations.JsMethod; import jsinterop.annotations.JsPackage; /** Web specializations for {@link Ints} methods. */ public abstract class IntsMethodsForWeb { @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL) public static native int min(int... array); @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Oct 26 00:50:12 UTC 2023 - 1K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/FloatsMethodsForWeb.java
*/ package com.google.common.primitives; import jsinterop.annotations.JsMethod; import jsinterop.annotations.JsPackage; /** Web specializations for {@link Floats} methods. */ public abstract class FloatsMethodsForWeb { @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL) public static native float min(float... array); @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Oct 26 00:50:12 UTC 2023 - 1K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/ShortsMethodsForWeb.java
*/ package com.google.common.primitives; import jsinterop.annotations.JsMethod; import jsinterop.annotations.JsPackage; /** Web specializations for {@link Shorts} methods. */ public abstract class ShortsMethodsForWeb { @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL) public static native short min(short... array); @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Oct 26 00:50:12 UTC 2023 - 1K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/ListenableFuture.java
* the License. */ package com.google.common.util.concurrent; import java.util.concurrent.Executor; import java.util.concurrent.Future; import jsinterop.annotations.JsFunction; import jsinterop.annotations.JsMethod; import jsinterop.annotations.JsOptional; import jsinterop.annotations.JsPackage; import jsinterop.annotations.JsType; import org.checkerframework.checker.nullness.qual.Nullable; /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Oct 24 18:27:19 UTC 2023 - 3.9K bytes - Viewed (0)