Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Populate signatureDocumentation #87

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions lib/src/gen/scip.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ class Document extends $pb.GeneratedMessage {
..pc<Occurrence>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'occurrences', $pb.PbFieldType.PM, subBuilder: Occurrence.create)
..pc<SymbolInformation>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'symbols', $pb.PbFieldType.PM, subBuilder: SymbolInformation.create)
..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'language')
..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'text')
..hasRequiredFields = false
;

Expand All @@ -253,6 +254,7 @@ class Document extends $pb.GeneratedMessage {
$core.Iterable<Occurrence>? occurrences,
$core.Iterable<SymbolInformation>? symbols,
$core.String? language,
$core.String? text,
}) {
final _result = create();
if (relativePath != null) {
Expand All @@ -267,6 +269,9 @@ class Document extends $pb.GeneratedMessage {
if (language != null) {
_result.language = language;
}
if (text != null) {
_result.text = text;
}
return _result;
}
factory Document.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
Expand Down Expand Up @@ -313,6 +318,15 @@ class Document extends $pb.GeneratedMessage {
$core.bool hasLanguage() => $_has(3);
@$pb.TagNumber(4)
void clearLanguage() => clearField(4);

@$pb.TagNumber(5)
$core.String get text => $_getSZ(4);
@$pb.TagNumber(5)
set text($core.String v) { $_setString(4, v); }
@$pb.TagNumber(5)
$core.bool hasText() => $_has(4);
@$pb.TagNumber(5)
void clearText() => clearField(5);
}

class Symbol extends $pb.GeneratedMessage {
Expand Down Expand Up @@ -541,6 +555,10 @@ class SymbolInformation extends $pb.GeneratedMessage {
..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'symbol')
..pPS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'documentation')
..pc<Relationship>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'relationships', $pb.PbFieldType.PM, subBuilder: Relationship.create)
..e<SymbolInformation_Kind>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'kind', $pb.PbFieldType.OE, defaultOrMaker: SymbolInformation_Kind.UnspecifiedKind, valueOf: SymbolInformation_Kind.valueOf, enumValues: SymbolInformation_Kind.values)
..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'displayName')
..aOM<Document>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'signatureDocumentation', subBuilder: Document.create)
..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'enclosingSymbol')
..hasRequiredFields = false
;

Expand All @@ -549,6 +567,10 @@ class SymbolInformation extends $pb.GeneratedMessage {
$core.String? symbol,
$core.Iterable<$core.String>? documentation,
$core.Iterable<Relationship>? relationships,
SymbolInformation_Kind? kind,
$core.String? displayName,
Document? signatureDocumentation,
$core.String? enclosingSymbol,
}) {
final _result = create();
if (symbol != null) {
Expand All @@ -560,6 +582,18 @@ class SymbolInformation extends $pb.GeneratedMessage {
if (relationships != null) {
_result.relationships.addAll(relationships);
}
if (kind != null) {
_result.kind = kind;
}
if (displayName != null) {
_result.displayName = displayName;
}
if (signatureDocumentation != null) {
_result.signatureDocumentation = signatureDocumentation;
}
if (enclosingSymbol != null) {
_result.enclosingSymbol = enclosingSymbol;
}
return _result;
}
factory SymbolInformation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
Expand Down Expand Up @@ -597,6 +631,44 @@ class SymbolInformation extends $pb.GeneratedMessage {

@$pb.TagNumber(4)
$core.List<Relationship> get relationships => $_getList(2);

@$pb.TagNumber(5)
SymbolInformation_Kind get kind => $_getN(3);
@$pb.TagNumber(5)
set kind(SymbolInformation_Kind v) { setField(5, v); }
@$pb.TagNumber(5)
$core.bool hasKind() => $_has(3);
@$pb.TagNumber(5)
void clearKind() => clearField(5);

@$pb.TagNumber(6)
$core.String get displayName => $_getSZ(4);
@$pb.TagNumber(6)
set displayName($core.String v) { $_setString(4, v); }
@$pb.TagNumber(6)
$core.bool hasDisplayName() => $_has(4);
@$pb.TagNumber(6)
void clearDisplayName() => clearField(6);

@$pb.TagNumber(7)
Document get signatureDocumentation => $_getN(5);
@$pb.TagNumber(7)
set signatureDocumentation(Document v) { setField(7, v); }
@$pb.TagNumber(7)
$core.bool hasSignatureDocumentation() => $_has(5);
@$pb.TagNumber(7)
void clearSignatureDocumentation() => clearField(7);
@$pb.TagNumber(7)
Document ensureSignatureDocumentation() => $_ensure(5);

@$pb.TagNumber(8)
$core.String get enclosingSymbol => $_getSZ(6);
@$pb.TagNumber(8)
set enclosingSymbol($core.String v) { $_setString(6, v); }
@$pb.TagNumber(8)
$core.bool hasEnclosingSymbol() => $_has(6);
@$pb.TagNumber(8)
void clearEnclosingSymbol() => clearField(8);
}

class Relationship extends $pb.GeneratedMessage {
Expand Down Expand Up @@ -710,6 +782,7 @@ class Occurrence extends $pb.GeneratedMessage {
..pPS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'overrideDocumentation')
..e<SyntaxKind>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'syntaxKind', $pb.PbFieldType.OE, defaultOrMaker: SyntaxKind.UnspecifiedSyntaxKind, valueOf: SyntaxKind.valueOf, enumValues: SyntaxKind.values)
..pc<Diagnostic>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'diagnostics', $pb.PbFieldType.PM, subBuilder: Diagnostic.create)
..p<$core.int>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'enclosingRange', $pb.PbFieldType.K3)
..hasRequiredFields = false
;

Expand All @@ -721,6 +794,7 @@ class Occurrence extends $pb.GeneratedMessage {
$core.Iterable<$core.String>? overrideDocumentation,
SyntaxKind? syntaxKind,
$core.Iterable<Diagnostic>? diagnostics,
$core.Iterable<$core.int>? enclosingRange,
}) {
final _result = create();
if (range != null) {
Expand All @@ -741,6 +815,9 @@ class Occurrence extends $pb.GeneratedMessage {
if (diagnostics != null) {
_result.diagnostics.addAll(diagnostics);
}
if (enclosingRange != null) {
_result.enclosingRange.addAll(enclosingRange);
}
return _result;
}
factory Occurrence.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
Expand Down Expand Up @@ -799,6 +876,9 @@ class Occurrence extends $pb.GeneratedMessage {

@$pb.TagNumber(6)
$core.List<Diagnostic> get diagnostics => $_getList(5);

@$pb.TagNumber(7)
$core.List<$core.int> get enclosingRange => $_getList(6);
}

class Diagnostic extends $pb.GeneratedMessage {
Expand Down
Loading