<commit_before>﻿// Copyright (c) Microsoft Open Technologies, Inc.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

using System.Collections.Generic;
using Microsoft.CodeAnalysis.LanguageServices;

namespace Microsoft.CodeAnalysis
{
    internal partial class DocumentState
    {
        public DocumentId Id
        {
            get { return this.info.Id; }
        }

        public string FilePath
        {
            get { return this.info.FilePath; }
        }

        public ILanguageServiceProvider LanguageServices
        {
            get { return this.languageServices; }
        }

        public DocumentInfo Info
        {
            get { return this.info; }
        }

        public IReadOnlyList<string> Folders
        {
            get { return this.info.Folders; }
        }

        public string Name
        {
            get { return this.info.Name; }
        }

        public ParseOptions ParseOptions
        {
            get { return this.options; }
        }

        public SourceCodeKind SourceCodeKind
        {
            get { return this.ParseOptions.Kind; }
        }
    }
}<commit_msg>Default to using Regular for a document's SyntaxKind. (changeset 1208298)<commit_after>﻿// Copyright (c) Microsoft Open Technologies, Inc.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

using System.Collections.Generic;
using Microsoft.CodeAnalysis.LanguageServices;

namespace Microsoft.CodeAnalysis
{
    internal partial class DocumentState
    {
        public DocumentId Id
        {
            get { return this.info.Id; }
        }

        public string FilePath
        {
            get { return this.info.FilePath; }
        }

        public ILanguageServiceProvider LanguageServices
        {
            get { return this.languageServices; }
        }

        public DocumentInfo Info
        {
            get { return this.info; }
        }

        public IReadOnlyList<string> Folders
        {
            get { return this.info.Folders; }
        }

        public string Name
        {
            get { return this.info.Name; }
        }

        public ParseOptions ParseOptions
        {
            get { return this.options; }
        }

        public SourceCodeKind SourceCodeKind
        {
            get
            {
                return this.ParseOptions == null ? SourceCodeKind.Regular : this.ParseOptions.Kind;
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.06731141199226305, 'fraction_numerical': 0.00425531914893617, 'mean_word_length': 1.65775950668037, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7661781', 'n_tokens_mistral': 654, 'n_tokens_neox': 627, 'n_words': 180}