Exemplo n.º 1
0
        public LineEntry(TargetAddress address, int file, int line, bool is_hidden,
				  SourceRange? source_range)
        {
            this.Address = address;;
            this.File = file;
            this.Line = line;
            this.IsHidden = is_hidden;
            this.SourceRange = source_range;
        }
Exemplo n.º 2
0
 public LineEntry(TargetAddress address, int file, int line, bool is_hidden,
                  SourceRange?source_range)
 {
     this.Address     = address;;
     this.File        = file;
     this.Line        = line;
     this.IsHidden    = is_hidden;
     this.SourceRange = source_range;
 }
Exemplo n.º 3
0
        internal Document(
            HostLanguageServices languageServices,
            DocumentId documentId, SourceText sourceText, string filePath,
            Document parent, SourceRange?rangeInParent, TextSpan?textSpanInParent)
        {
            _languageServices = languageServices;

            Id         = documentId;
            SourceText = sourceText;
            FilePath   = filePath;

            var logicalDocumentFactory = languageServices.GetRequiredService <ILogicalDocumentFactory>();

            LogicalDocuments = logicalDocumentFactory.GetLogicalDocuments(this).ToImmutableArray();
        }
Exemplo n.º 4
0
 public SourceAddress(SourceFile file, SourceBuffer buffer, int row,
                      int line_offset, int line_range, SourceRange?source_range)
     : this(file, buffer, row, line_offset, line_range)
 {
     this.source_range = source_range;
 }
Exemplo n.º 5
0
        public SourceAddress(SourceFile file, SourceBuffer buffer, int row,
				      int line_offset, int line_range, SourceRange? source_range)
            : this(file, buffer, row, line_offset, line_range)
        {
            this.source_range = source_range;
        }
Exemplo n.º 6
0
 /// <inheritdoc />
 public Boolean Equals(SourceRange?other) =>
 other is not null && this.Start.Equals(other.Start) && this.End.Equals(other.End);