C# Class MixinRefactoring.SemanticTypeReaderBase

ファイルを表示 Open project: pgenfer/mixinSharp Class Usage Examples

Public Methods

Method Description
VisitSymbol ( ISymbol symbol ) : void

Protected Methods

Method Description
ReadSymbol ( IEventSymbol @event ) : void
ReadSymbol ( IMethodSymbol methodSymbol ) : void

when overridden, don't forget to call base method to read parameters

ReadSymbol ( IParameterSymbol parameter ) : void
ReadSymbol ( IPropertySymbol propertySymbol ) : void
ReadSymbol ( ISymbol symbol ) : void

fallback if symbol could not be resolved to any of the other types

ReadSymbol ( ITypeSymbol typeSymbol ) : void

TODO: improve this: there should be a classsymbol reader which calls the other readers. Because currently this method is implemented by every reader although the reader will only handle the symbols for which it is responsible

Method Details

ReadSymbol() protected method

protected ReadSymbol ( IEventSymbol @event ) : void
@event IEventSymbol
return void

ReadSymbol() protected method

when overridden, don't forget to call base method to read parameters
protected ReadSymbol ( IMethodSymbol methodSymbol ) : void
methodSymbol IMethodSymbol
return void

ReadSymbol() protected method

protected ReadSymbol ( IParameterSymbol parameter ) : void
parameter IParameterSymbol
return void

ReadSymbol() protected method

protected ReadSymbol ( IPropertySymbol propertySymbol ) : void
propertySymbol IPropertySymbol
return void

ReadSymbol() protected method

fallback if symbol could not be resolved to any of the other types
protected ReadSymbol ( ISymbol symbol ) : void
symbol ISymbol
return void

ReadSymbol() protected method

TODO: improve this: there should be a classsymbol reader which calls the other readers. Because currently this method is implemented by every reader although the reader will only handle the symbols for which it is responsible
protected ReadSymbol ( ITypeSymbol typeSymbol ) : void
typeSymbol ITypeSymbol
return void

VisitSymbol() public method

public VisitSymbol ( ISymbol symbol ) : void
symbol ISymbol
return void