AnalyzerConfig Class

Definition

Represents a single EditorConfig file, see https://editorconfig.org for details about the format.

C#
public sealed class AnalyzerConfig
Inheritance
AnalyzerConfig

Properties

GlobalSection
IsRoot

Gets whether this editorconfig is a topmost editorconfig.

NamedSections
NormalizedDirectory

The directory the editorconfig was contained in, with all directory separators replaced with '/'.

PathToFile

The path passed to Parse(String, String) during construction.

ReservedKeys

A set of keys that are reserved for special interpretation for the editorconfig specification. All values corresponding to reserved keys in a (key,value) property pair are always lowercased during parsing.

ReservedValues

A set of values that are reserved for special use for the editorconfig specification and will always be lower-cased by the parser.

Methods

Parse(SourceText, String)

Parses an editor config file text located at the given path. No parsing errors are reported. If any line contains a parse error, it is dropped.

Parse(String, String)

Parses an editor config file text located at the given path. No parsing errors are reported. If any line contains a parse error, it is dropped.

TryCreateSectionNameMatcher(String)

Takes a Name and creates a matcher that matches the the given language. Returns null if the section name is invalid.

Applies to

Proizvod Verzije
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0