Exemplo n.º 1
0
 public override ImmutableArray <SyntaxNode> GetDeclarators(ISymbol method)
 {
     Assert.True(method is MethodSymbol, "Only methods should have a syntax map.");
     return(LocalVariableDeclaratorsCollector.GetDeclarators(
                (SourceMemberMethodSymbol)method
                ));
 }
Exemplo n.º 2
0
        internal static ImmutableArray<SyntaxNode> GetAllLocals(MethodSymbol method)
        {
            var sourceMethod = method as SourceMethodSymbol;
            if (sourceMethod == null)
            {
                return ImmutableArray<SyntaxNode>.Empty;
            }

            return LocalVariableDeclaratorsCollector.GetDeclarators(sourceMethod);
        }