Delegate NamingStrategy
The naming strategy to use to convert a slot into a variable name. Uses the provided scope to check if the variable name is not being used already.
Namespace: Loretta.CodeAnalysis.Lua.Experimental.Minifying
Assembly: Loretta.CodeAnalysis.Lua.Experimental.dll
Syntax
public delegate string NamingStrategy(int slot, IEnumerable<IScope> scopes);
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | slot | The slot to convert to a variable name. |
IEnumerable<IScope> | scopes | The scopes the slot will be used in. |
Returns
Type | Description |
---|---|
System.String |