C# Class Microsoft.R.Core.DataTips.RDataTip

Mostrar archivo Open project: Microsoft/RTVS

Public Methods

Method Description
GetDataTipExpression ( IAstNode ast, ITextRange range ) : IAstNode

Given an R AST, and a range in that AST, determines the DataTip expression for that range.

DataTip expression is defined as the outermost expression enclosing the range, such that the sequence of operators from that outermost expression to the innermost node still enclosing the range only consists of operators: $ @ :: ::: [ [[. Furthermore, in case of [ [[, only their left operands are considered.

Private Methods

Method Description
IsValidInitialNode ( IAstNode node ) : bool

Determines whether hovering over the AST node provided should trigger the DataTip.

Method Details

GetDataTipExpression() public static method

Given an R AST, and a range in that AST, determines the DataTip expression for that range.
DataTip expression is defined as the outermost expression enclosing the range, such that the sequence of operators from that outermost expression to the innermost node still enclosing the range only consists of operators: $ @ :: ::: [ [[. Furthermore, in case of [ [[, only their left operands are considered.
public static GetDataTipExpression ( IAstNode ast, ITextRange range ) : IAstNode
ast IAstNode
range ITextRange
return IAstNode