TagLines(string,ICollection<string>)

Method in Utility

Summary

Given Yarn source code, adds line tags to the ends of all lines that need one and do not already have one.

public static (string, IList<string>) TagLines(string contents, ICollection<string> existingLineTags = null)

Remarks

This method ensures that it does not generate line tags that are already present in the file, or present in the existingLineTags collection.

Line tags are added to any line of source code that contains user-visible text: lines, options, and shortcut options.

Parameters

Returns

Tuple of the modified source code, with line tags added and the list of new line tags generated.

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.