示例#1
0
func (s *SpecInfoGatherer) getParsedSpecs(specFiles []string) []*parser.Specification {
	if s.conceptDictionary == nil {
		s.conceptDictionary = parser.NewConceptDictionary()
	}
	parsedSpecs, parseResults := parser.ParseSpecFiles(specFiles, s.conceptDictionary)
	s.handleParseFailures(parseResults)
	return parsedSpecs
}
示例#2
0
func (specInfoGatherer *SpecInfoGatherer) getDictionary() *parser.ConceptDictionary {
	if specInfoGatherer.conceptDictionary == nil {
		specInfoGatherer.conceptDictionary = parser.NewConceptDictionary()
	}
	return specInfoGatherer.conceptDictionary
}