Skip to main content

parse_protobuf_generated_source

Function parse_protobuf_generated_source 

Source
pub fn parse_protobuf_generated_source(
    language: SourceLanguage,
    source_path: &str,
    input: &str,
) -> Vec<ProtoGeneratedMarker>
Expand description

Finds exact gRPC method paths in explicitly generated source.

A marker is emitted only when the file contains a recognized generated-code header and a string literal whose complete value has the canonical /qualified.Service/Method shape. Paths and filenames alone never establish that a source file is generated.