Exemplo n.º 1
0
        public Document(TextDocument document, Language language, string[] lines, ProjectItem projectItem, IEnumerable<string> keywords = null)
        {
            _document = document;

              _lineEndingInDocument = NewLineManager.DetectMostFrequentLineEnd (GetText ());

              string inputText = CreateInputText(lines);
              _header = new DocumentHeader (document, inputText, new DocumentHeaderProperties (projectItem));
              _keywords = keywords;

              _language = language;

              _commentParser = new CommentParser (language.LineComment, language.BeginComment, language.EndComment, language.BeginRegion, language.EndRegion);
        }
Exemplo n.º 2
0
        public Document(TextDocument document, Language language, string[] lines, ProjectItem projectItem, IEnumerable <string> keywords = null)
        {
            _document = document;

            _lineEndingInDocument = NewLineManager.DetectMostFrequentLineEnd(GetText());


            string inputText = CreateInputText(lines);

            _header   = new DocumentHeader(document, inputText, new DocumentHeaderProperties(projectItem));
            _keywords = keywords;

            _language = language;

            _commentParser = new CommentParser(language.LineComment, language.BeginComment, language.EndComment, language.BeginRegion, language.EndRegion);
        }
 public string CreateValue(DocumentHeader documentHeader)
 {
     return(_createValue(documentHeader));
 }
 public bool CanCreateValue(DocumentHeader documentHeader)
 {
     return(_canCreateValue(documentHeader));
 }
 public string CreateValue(DocumentHeader documentHeader)
 {
   return _createValue(documentHeader);
 }
 public bool CanCreateValue(DocumentHeader documentHeader)
 {
   return _canCreateValue(documentHeader);
 }