Method | Description | |
---|---|---|
IncrementNestingLevel ( ITranslationUnit translationUnit, ITranslationUnit parentTranslationUnit ) : void |
Utility method used to safely increment the nesting level of an ITranslationUnit only in case it supports nesting level. This will cause translationUnit to be checked. In case it supports nestin level, then its nesting level is changed in order to have the nesting level of parentTranslationUnit + 1. |
Method | Description | |
---|---|---|
AddTranslationUnit ( ITranslationUnit translationUnit ) : void |
Ensures that compound ITranslationUnit will increment added unit's nesting level. TODO: Use this!
|
|
AddTranslationUnitCore ( ITranslationUnit translationUnit ) : void |
Logic to provide in subclasses to add ITranslationUnit (for compound translation units). TODO: Turn this into abstract and make all unit use one method for add compound units. TODO: Add to ICompoundUnit interface and have classes distinguish uisng RTTI!
|
|
NestedElementTranslationUnit ( ) : System |
Initializes a new instance of the NestedElementTranslationUnit.
|
|
NestedElementTranslationUnit ( |
Copy initializes a new instance of the NestedElementTranslationUnit. For testability. |
|
NestedElementTranslationUnit ( int nestingLevel ) : System |
Initializes a new instance of the NestedElementTranslationUnit.
|
|
OnNestingLevelChanged ( ) : void |
When the indentation level changes, we need to apply a different formatter. When the nesting level changes, this procedure will adjust it in case the automatic nesting level has been set to automatic.
|
protected AddTranslationUnit ( ITranslationUnit translationUnit ) : void | ||
translationUnit | ITranslationUnit | The translation unit to add. |
return | void |
protected AddTranslationUnitCore ( ITranslationUnit translationUnit ) : void | ||
translationUnit | ITranslationUnit | The translation unit to add. |
return | void |
public static IncrementNestingLevel ( ITranslationUnit translationUnit, ITranslationUnit parentTranslationUnit ) : void | ||
translationUnit | ITranslationUnit | The |
parentTranslationUnit | ITranslationUnit | The |
return | void |
protected NestedElementTranslationUnit ( ) : System | ||
return | System |
protected NestedElementTranslationUnit ( |
||
other | ||
return | System |
protected NestedElementTranslationUnit ( int nestingLevel ) : System | ||
nestingLevel | int | |
return | System |