func (s *ComparePrototypesFromSourceAndPreprocSource) Run(ctx *types.Context) error { ctagsOfSource := ctx.CTagsOfSource ctagsOfPreprocSource := ctx.CTagsOfPreprocessedSource actualCTags := []*types.CTag{} for _, ctagOfPreprocSource := range ctagsOfPreprocSource { if sliceContainsCTag(ctagsOfSource, ctagOfPreprocSource) { actualCTags = append(actualCTags, ctagOfPreprocSource) } } ctx.CTagsCollected = actualCTags return nil }
func (*CollectCtagsFromPreprocSource) Run(ctx *types.Context) error { ctx.CTagsCollected = ctx.CTagsOfPreprocessedSource return nil }