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