Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 96 for Constant (0.2 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt

    import org.jetbrains.kotlin.psi.KtElement
    import org.jetbrains.kotlin.resolve.constants.evaluate.CompileTimeType
    import org.jetbrains.kotlin.resolve.constants.evaluate.evalBinaryOp
    import org.jetbrains.kotlin.resolve.constants.evaluate.evalUnaryOp
    import org.jetbrains.kotlin.types.ConstantValueKind
    
    /**
     * An evaluator that transform numeric operation, such as div, into compile-time constant iff involved operands, such as explicit receiver
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Mar 20 14:53:27 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/MediaTypeTest.java

        for (MediaType constant : getConstants()) {
          assertSame(constant, MediaType.parse(constant.toString()));
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testCreate_useConstants() throws Exception {
        for (MediaType constant : getConstants()) {
          assertSame(
              constant,
              MediaType.create(constant.type(), constant.subtype())
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/MediaTypeTest.java

        for (MediaType constant : getConstants()) {
          assertSame(constant, MediaType.parse(constant.toString()));
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testCreate_useConstants() throws Exception {
        for (MediaType constant : getConstants()) {
          assertSame(
              constant,
              MediaType.create(constant.type(), constant.subtype())
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactLinkedHashMap.java

     * load on the garbage collector by only using a constant number of internal objects.
     *
     * <p>This class should not be assumed to be universally superior to {@code
     * java.util.LinkedHashMap}. Generally speaking, this class reduces object allocation and memory
     * consumption at the price of moderately increased constant factors of CPU. Only use this class
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

            if (field.getGenericType() == field.getType() && type.isAssignableFrom(field.getType())) {
              field.setAccessible(true);
              try {
                T constant = type.cast(field.get(null));
                if (constant != null) {
                  return constant;
                }
              } catch (IllegalAccessException impossible) {
                throw new AssertionError(impossible);
              }
            }
          }
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  6. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

            if (field.getGenericType() == field.getType() && type.isAssignableFrom(field.getType())) {
              field.setAccessible(true);
              try {
                T constant = type.cast(field.get(null));
                if (constant != null) {
                  return constant;
                }
              } catch (IllegalAccessException impossible) {
                throw new AssertionError(impossible);
              }
            }
          }
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  7. cmd/metrics-v3-types.go

    		descriptors: d,
    	}
    }
    
    // ToPromMetrics - converts the internal metric values to Prometheus
    // adding the given name prefix. The extraLabels are added to each metric as
    // constant labels.
    func (m *MetricValues) ToPromMetrics(namePrefix string, extraLabels map[string]string,
    ) []prometheus.Metric {
    	metrics := make([]prometheus.Metric, 0, len(m.values))
    	for metricName, mv := range m.values {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:05:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  8. src/cmd/cgo/doc.go

    constant. It can do this by reading object files. If cgo has decided
    that t1 is a type, v2 and v3 are variables or functions, and i4, i5
    are integer constants, u6 is an unsigned integer constant, and f7 and f8
    are float constants, and s9 and s10 are string constants, it generates:
    
    	<preamble>
    	__typeof__(t1) *__cgo__1;
    	__typeof__(v2) *__cgo__2;
    	__typeof__(v3) *__cgo__3;
    	__typeof__(i4) *__cgo__4;
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

                    }
                }
    
                else -> null
            } ?: FirCompileTimeConstantEvaluator.evaluate(this, KtConstantEvaluationMode.CONSTANT_EXPRESSION_EVALUATION)
                ?.convertConstantExpression(builder.analysisSession)
        }
    
        private fun computeErrorCallClassId(call: FirGetClassCall): ClassId? {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  10. src/builtin/builtin.go

    //	Channel: the number of elements queued (unread) in the channel buffer;
    //	         if v is nil, len(v) is zero.
    //
    // For some arguments, such as a string literal or a simple array expression, the
    // result can be a constant. See the Go language specification's "Length and
    // capacity" section for details.
    func len(v Type) int
    
    // The cap built-in function returns the capacity of v, according to its type:
    //
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
Back to top