Lines Matching defs:location
44 /// such as source location and comments.
94 private DescriptorDeclaration(IDescriptor descriptor, Location location)
98 bool hasEndLine = location.Span.Count == 4;
100 StartLine = location.Span[0] + 1;
101 StartColumn = location.Span[1] + 1;
102 EndLine = hasEndLine ? location.Span[2] + 1 : StartLine;
103 EndColumn = location.Span[hasEndLine ? 3 : 2] + 1;
104 LeadingComments = location.LeadingComments;
105 TrailingComments = location.TrailingComments;
106 LeadingDetachedComments = new ReadOnlyCollection<string>(location.LeadingDetachedComments.ToList());
109 internal static DescriptorDeclaration FromProto(IDescriptor descriptor, Location location) =>
110 new DescriptorDeclaration(descriptor, location);