Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for IsMethod (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

       * If I understand correctly:
       *
       * This needs to be a @JsMethod so that J2CL knows to look for a JavaScript implemention of
       * it in Platform.native.js. (The JavaScript implementation inline below is visible to *GWT*, but
       * *J2CL* doesn't look at it.)
       *
       * However, once it's a @JsMethod, GWT produces a warning. That's because (a) the *other* purpose
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 29 18:16:45 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top