private static string MapParameter(VisualBasicSyntax.ParameterSyntax parameter, bool useLongNames, SemanticModel semanticModel)
        {
            if (semanticModel == null)
            {
                return(string.Empty);
            }
            var symbol = SymbolHelper.GetSymbol <IParameterSymbol>(semanticModel, parameter);

            return(TypeMapper.Map(symbol?.Type, useLongNames));
        }
Beispiel #2
0
        private static string MapParameter(VisualBasicSyntax.ParameterSyntax parameter, bool useLongNames, SemanticModel semanticModel)
        {
            var symbol = semanticModel.GetDeclaredSymbol(parameter) as IParameterSymbol;

            return(TypeMapper.Map(symbol.Type, useLongNames));
        }