Helper classes for looking for modifiers such as private var.
Static Public Member Functions | |
| static bool | Check (CodeFragment fragment, string modifier) |
| Checks for a given modifier e.g. 'private' in the given fragment of code. More... | |
| static void | Handle (CodeFragment fragment, out bool isPublic) |
| Looks for 'private' before the given fragment. If found, it's also removed. More... | |
| static CodeFragment | Skip (CodeFragment fragment) |
| Skips over any modifiers found in the given code fragment, returning the first non-modifier fragment found. More... | |
|
inlinestatic |
Checks for a given modifier e.g. 'private' in the given fragment of code.
| fragment | The fragment to check. |
| modifier | The modifier to check for. |
|
inlinestatic |
Looks for 'private' before the given fragment. If found, it's also removed.
| fragment | The fragment to check before. |
| isPublic | True if private was not found. |
|
inlinestatic |
Skips over any modifiers found in the given code fragment, returning the first non-modifier fragment found.
| fragment | The place to start from. |