C# Syntax Tree Semantic Model (Compilation/SyntaxTreeSemanticModel.cs)

roslyn · src/Compilers/CSharp/Portable/Compilation/SyntaxTreeSemanticModel.cs · csharp · MIT
dev-tools, analytics, lang:csharp, tag:roslyn

Provides an interface for querying semantic information from nodes within a C# syntax tree. Use this when building static analysis tools or refactoring engines for C#.

// Source: https://github.com/dotnet/roslyn | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#pragma warning disable RSEXPERIMENTAL001 // Internal use of experimental API
#nullable disable

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.PooledObjects;
using Microsoft.CodeAnalysis.Text;
using Roslyn.Utilities;

namespace Microsoft.CodeAnal

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key