This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Immutable; | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
using Microsoft.CodeAnalysis.Diagnostics; | |
namespace MyAnalyzers | |
{ | |
[DiagnosticAnalyzer(LanguageNames.CSharp)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.net.InetAddress; | |
import java.net.InetSocketAddress; | |
import java.net.SocketAddress; | |
import java.time.Duration; | |
import reactor.core.publisher.Mono; | |
import reactor.netty.Connection; | |
import reactor.netty.ConnectionObserver; | |
import reactor.netty.http.server.ContextAwareHttpServerMetricsRecorder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.function.BiFunction; | |
import java.util.function.Function; | |
import io.opentelemetry.api.GlobalOpenTelemetry; | |
import io.opentelemetry.api.OpenTelemetry; | |
import io.opentelemetry.api.common.AttributeKey; | |
import io.opentelemetry.api.trace.Span; | |
import io.opentelemetry.api.trace.SpanBuilder; | |
import io.opentelemetry.api.trace.Tracer; | |
import io.opentelemetry.context.Scope; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright The OpenTelemetry Authors | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
package io.opentelemetry.instrumentation.api.tracer; | |
import java.lang.reflect.ParameterizedType; | |
import java.lang.reflect.Type; | |
import java.lang.reflect.TypeVariable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.time.Duration; | |
import java.util.Random; | |
import java.util.concurrent.atomic.AtomicReference; | |
import io.netty.handler.codec.http.HttpHeaderNames; | |
import reactor.core.publisher.Flux; | |
import reactor.core.publisher.Mono; | |
import reactor.core.publisher.Sinks; | |
import reactor.netty.http.client.HttpClient; | |
import reactor.netty.http.server.HttpServer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sandbox; | |
import java.util.concurrent.Callable; | |
import java.util.concurrent.CompletableFuture; | |
import java.util.concurrent.CompletionStage; | |
import org.reactivestreams.Subscription; | |
import reactor.core.CoreSubscriber; | |
import reactor.core.Exceptions; | |
import reactor.core.publisher.Mono; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sandbox; | |
import java.util.Iterator; | |
import java.util.NoSuchElementException; | |
import java.util.function.Consumer; | |
public class Generators { | |
private static final ContinuationScope continuationScope = new ContinuationScope("Generators"); | |
public static <T> Iterable<T> createGenerator(Consumer<Consumer<T>> consumer) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sandbox; | |
import java.net.URI; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpResponse; | |
import java.time.Duration; | |
import java.time.temporal.ChronoUnit; | |
import java.util.concurrent.CompletionStage; | |
import java.util.concurrent.CountDownLatch; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.io.UncheckedIOException; | |
import java.util.Collections; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.function.Function; | |
import java.util.function.Supplier; | |
import com.fasterxml.jackson.core.JsonParser; | |
import com.fasterxml.jackson.core.JsonPointer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
public record class Person { | |
public required int ID { get; init; } | |
public string FirstName { get; init; } | |
public string LastName { get; init; } | |
Person { | |
if (ID < 0) throw new ArgumentOutOfRangeException(nameof(ID)); | |
} | |
} |
NewerOlder