Lines Matching full:snippet
15 // Snippet Information
17 …Parser2_3) getSnippetInformationFromNode2_3(node *gordfParser.Node) (si *v2_3.Snippet, err error) {
18 si = &v2_3.Snippet{}
31 // file which is associated with the snippet
45 // license info in snippet can be NONE, NOASSERTION or SimpleLicensingInfo
51 return nil, fmt.Errorf("error parsing license info in snippet: %v", err)
66 return nil, fmt.Errorf("error parsing license info in snippet: %v", err)
76 // given is the id of the file, sets the snippet to the file in parser.
77 func (parser *rdfParser2_3) setSnippetToFileWithID(snippet *v2_3.Snippet, fileID common.ElementID) … argument
79 return fmt.Errorf("snippet refers to an undefined file with ID: %s", fileID)
82 // initializing snippet of the files if it is not defined already
84 parser.files[fileID].Snippets = map[common.ElementID]*v2_3.Snippet{}
87 // setting the snippet to the file.
88 parser.files[fileID].Snippets[snippet.SnippetSPDXIdentifier] = snippet
93 func (parser *rdfParser2_3) setSnippetRangeFromNode(node *gordfParser.Node, si *v2_3.Snippet) error… argument
152 func (parser *rdfParser2_3) getPointerFromNode(node *gordfParser.Node, si *v2_3.Snippet) (rt RangeT… argument
177 func (parser *rdfParser2_3) parseRangeReference(node *gordfParser.Node, snippet *v2_3.Snippet) erro… argument
180 // todo: set this reference to the snippet
192 func setSnippetID(uri string, si *v2_3.Snippet) (err error) { argument
196 return fmt.Errorf("error setting snippet identifier: %v", uri)