C# Class DynamicExpresso.Parsing.Parser

Datei anzeigen Open project: davideicardi/DynamicExpresso

Public Methods

Method Description
Parse ( ParserArguments arguments ) : Expression

Private Methods

Method Description
AddInterface ( List types, Type type ) : void
CheckAndPromoteOperand ( Type signatures, string opName, Expression &expr, int errorPos ) : void
CheckAndPromoteOperands ( Type signatures, string opName, Expression &left, Expression &right, int errorPos ) : void
CheckIfMethodIsApplicableAndPrepareIt ( MethodData method, Expression args ) : bool
CompareConversions ( Type s, Type t1, Type t2 ) : int
CreateLiteral ( object value, string text ) : Expression
CreateParseException ( int pos, string format ) : Exception
EvalEscapeChar ( char source ) : char
EvalEscapeStringLiteral ( string source ) : string
ExtractActualGenericArguments ( Type requestedParameters, Type actualParameters ) : List
FindAssignableGenericType ( Type givenType, Type genericTypeDefinition ) : Type
FindBestMethod ( IEnumerable methods, Expression args ) : MethodData[]
FindExtensionMethods ( Type type, string methodName, Expression args ) : MethodData[]
FindIndexer ( Type type, Expression args ) : MethodData[]
FindMethods ( Type type, string methodName, bool staticAccess, Expression args ) : MethodData[]
FindPropertyOrField ( Type type, string memberName, bool staticAccess ) : MemberInfo
GenerateAdd ( Expression left, Expression right ) : Expression
GenerateConditional ( Expression test, Expression expr1, Expression expr2, int errorPos ) : Expression
GenerateConversion ( Expression expr, Type type, int errorPos ) : Expression
GenerateEqual ( Expression left, Expression right ) : Expression
GenerateGreaterThan ( Expression left, Expression right ) : Expression
GenerateGreaterThanEqual ( Expression left, Expression right ) : Expression
GenerateLessThan ( Expression left, Expression right ) : Expression
GenerateLessThanEqual ( Expression left, Expression right ) : Expression
GenerateNotEqual ( Expression left, Expression right ) : Expression
GeneratePropertyOrFieldExpression ( Type type, Expression instance, int errorPos, string propertyOrFieldName ) : Expression
GenerateStaticMethodCall ( string methodName, Expression left, Expression right ) : Expression
GenerateStringConcat ( Expression left, Expression right ) : Expression
GenerateSubtract ( Expression left, Expression right ) : Expression
GetIdentifier ( ) : string
GetNonNullableType ( Type type ) : Type
GetNumericTypeKind ( Type type ) : int
GetParameterType ( ParameterInfo parameterInfo ) : Type
GetStaticMethod ( string methodName, Expression left, Expression right ) : MethodInfo
GetTypeName ( Type type ) : string
HasParamsArrayType ( ParameterInfo parameterInfo ) : bool
IsCompatibleWith ( Type source, Type target ) : bool
IsDynamicExpression ( Expression instance ) : bool
IsDynamicType ( Type type ) : bool
IsNullableType ( Type type ) : bool
IsSignedIntegralType ( Type type ) : bool
IsUnsignedIntegralType ( Type type ) : bool
MethodHasPriority ( Expression args, MethodData method, MethodData otherMethod ) : bool
NextChar ( ) : void
NextToken ( ) : void
Parse ( ) : Expression
ParseAdditive ( ) : Expression
ParseArgumentList ( ) : System.Linq.Expressions.Expression[]
ParseArguments ( ) : System.Linq.Expressions.Expression[]
ParseAssignement ( ) : Expression
ParseCharLiteral ( ) : Expression
ParseComparison ( ) : Expression
ParseConditional ( ) : Expression
ParseDelegateInvocation ( Expression delegateExp, int errorPos ) : Expression
ParseDynamicMethodInvocation ( Type type, Expression instance, string methodName, Expression args ) : Expression
ParseDynamicProperty ( Type type, Expression instance, string propertyOrFieldName ) : Expression
ParseElementAccess ( Expression expr ) : Expression
ParseExpressionSegment ( ) : Expression
ParseExpressionSegment ( Type returnType ) : Expression
ParseExtensionMethodInvocation ( Type type, Expression instance, int errorPos, string id, Expression args ) : Expression
ParseIdentifier ( ) : Expression
ParseIntegerLiteral ( ) : Expression
ParseLambdaInvocation ( LambdaExpression lambda, int errorPos ) : Expression
ParseLogicalAnd ( ) : Expression
ParseLogicalOr ( ) : Expression
ParseMemberAccess ( Type type, Expression instance ) : Expression
ParseMethodInvocation ( Type type, Expression instance, int errorPos, string methodName ) : Expression
ParseMultiplicative ( ) : Expression
ParseNew ( ) : Expression
ParseNormalMethodInvocation ( Type type, Expression instance, int errorPos, string id, Expression args ) : Expression
ParseParenExpression ( ) : Expression
ParsePrimary ( ) : Expression
ParsePrimaryStart ( ) : Expression
ParseRealLiteral ( ) : Expression
ParseStringLiteral ( ) : Expression
ParseTypeKeyword ( Type type ) : Expression
ParseTypeTesting ( ) : Expression
ParseTypeof ( ) : Expression
ParseUnary ( ) : Expression
Parser ( ParserArguments arguments ) : System
PrepareDelegateInvoke ( Type type, Expression &args ) : bool
PrepareOperandArguments ( Type signatures, Expression args ) : System.Linq.Expressions.Expression[]
PreviousChar ( ) : void
PromoteExpression ( Expression expr, Type type, bool exact ) : Expression
SelfAndBaseClasses ( Type type ) : IEnumerable
SelfAndBaseTypes ( Type type ) : IEnumerable
SetTextPos ( int pos ) : void
ValidateDigit ( ) : void
ValidateToken ( TokenId t ) : void
ValidateToken ( TokenId t, string errorMessage ) : void

Method Details

Parse() public static method

public static Parse ( ParserArguments arguments ) : Expression
arguments ParserArguments
return System.Linq.Expressions.Expression