Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 882 for Diagnostic (0.16 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go

    		d.reachable = true
    	}
    
    	if !d.reachable {
    		switch stmt.(type) {
    		case *ast.EmptyStmt:
    			// do not warn about unreachable empty statements
    		default:
    			d.pass.Report(analysis.Diagnostic{
    				Pos:     stmt.Pos(),
    				End:     stmt.End(),
    				Message: "unreachable code",
    				SuggestedFixes: []analysis.SuggestedFix{{
    					Message: "Remove",
    					TextEdits: []analysis.TextEdit{{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. test/bounds.go

    // errorcheck -0 -m -l
    
    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test, using compiler diagnostic flags, that bounds check elimination
    // is eliminating the correct checks.
    
    package foo
    
    var (
    	s []int
    
    	a1    [1]int
    	a1k   [1000]int
    	a100k [100000]int
    
    	p1    *[1]int
    	p1k   *[1000]int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 27 03:11:45 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

            get() {
                return when (this) {
                    is ConeErrorType -> when (val diagnostic = this.diagnostic) {
                        // Tolerate code that misses type parameters while shortening it.
                        is ConeUnmatchedTypeArgumentsError -> diagnostic.symbol.classId
                        else -> null
                    }
                    is ConeClassLikeType -> lookupTag.classId
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 16:54:07 UTC 2024
    - 69.6K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ScopeProvider.kt

     * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
     */
    
    package org.jetbrains.kotlin.analysis.api.descriptors.components
    
    import com.intellij.openapi.diagnostic.Logger
    import org.jetbrains.kotlin.analysis.api.components.*
    import org.jetbrains.kotlin.analysis.api.descriptors.KaFe10Session
    import org.jetbrains.kotlin.analysis.api.descriptors.components.base.KaFe10SessionComponent
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/converter_gen.cc

              "// override a diagnostic handler with an no-op handler only\n"
              "// while this pass runs.\n"
              "uint64_t current_thread_id = llvm::get_threadid();\n"
              "ScopedDiagnosticHandler scoped_diag_handler(\n"
              "      top.getContext(), [&current_thread_id](Diagnostic&) -> "
              "LogicalResult "
              "{\n"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/text/TreeFormatter.java

    import javax.annotation.Nullable;
    import java.lang.annotation.Annotation;
    import java.lang.reflect.Method;
    import java.lang.reflect.ParameterizedType;
    import java.lang.reflect.Type;
    
    /**
     * Constructs a tree of diagnostic messages.
     */
    public class TreeFormatter implements DiagnosticsVisitor {
        private final StringBuilder buffer = new StringBuilder();
        private final AbstractStyledTextOutput original;
        private Node current;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go

    			// golang/go#64547: cfg.Block.Return may return a synthetic
    			// ReturnStmt that overflows the file.
    			if pass.Fset.File(pos) != pass.Fset.File(end) {
    				end = pos
    			}
    			pass.Report(analysis.Diagnostic{
    				Pos:     pos,
    				End:     end,
    				Message: fmt.Sprintf("this return statement may be reached without using the %s var defined on line %d", v.Name(), lineno),
    			})
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go

    		if err != nil {
    			t.Errorf("%v: error decoding %v: %v", initial, string(b), err)
    		}
    		if !final.Equal(&initial) {
    			diag, err := cbor.Diagnose(b)
    			if err != nil {
    				t.Logf("failed to produce diagnostic encoding of 0x%x: %v", b, err)
    			}
    			t.Errorf("expected equal: %v, %v (cbor was '%s')", initial, final, diag)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    		}
    		for _, term := range terms {
    			subpath := lockPath(tpkg, term.Type(), seen)
    			if len(subpath) > 0 {
    				if term.Tilde() {
    					// Prepend a tilde to our lock path entry to clarify the resulting
    					// diagnostic message. Consider the following example:
    					//
    					//  func _[Mutex interface{ ~sync.Mutex; M() }](m Mutex) {}
    					//
    					// Here the naive error message will be something like "passes lock
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java

                }
            }
        }
    
        protected abstract ExecutionTimeValue<? extends T> calculateOwnExecutionTimeValue(EvaluationContext.ScopeContext context, S value);
    
        /**
         * Returns a diagnostic string describing the current source of value of this property. Should not realize the value.
         */
        protected abstract String describeContents();
    
        // This method is final - implement describeContents() instead
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:54 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top