C# Class Microsoft.R.Core.AST.Operators.Operator

Inheritance: RValueNode, IOperator
Mostrar archivo Open project: Microsoft/RTVS

Public Methods

Method Description
GetUnaryForm ( OperatorType operatorType ) : OperatorType
IsUnaryOperator ( TokenStream tokens, ITextProvider textProvider, OperatorType operatorType, int offset ) : bool

Given token stream and operator type determines if operator is unary

Private Methods

Method Description
IsPossibleUnary ( OperatorType operatorType ) : bool

Method Details

GetUnaryForm() public static method

public static GetUnaryForm ( OperatorType operatorType ) : OperatorType
operatorType OperatorType
return OperatorType

IsUnaryOperator() public static method

Given token stream and operator type determines if operator is unary
public static IsUnaryOperator ( TokenStream tokens, ITextProvider textProvider, OperatorType operatorType, int offset ) : bool
tokens TokenStream Token stream
textProvider ITextProvider Text provider
operatorType OperatorType Operator type
offset int Offset to look back
return bool