private IAstMapper <IExpression> ModifiedVariableMapper(IIdentifierElementFinder elementFinder,
                                                                Identifier identifier)
        {
            var expression = Parent.FindMember(identifier);

            return(new ModifiedVariableMapper(elementFinder, identifier, expression));
        }
Ejemplo n.º 2
0
        internal IdentifierMapper(IIdentifierElementFinder elementFinder, IParentReferenceResolver parent)

        {
            _elementFinder = elementFinder;
            _parent        = parent;
            MapElements();
        }
 internal AccessedVariableMapper(IIdentifierElementFinder elementFinder, Identifier identifier,
                                 IExpression accessedExpression)
 {
     _elementFinder      = elementFinder;
     _identifier         = identifier;
     _accessedExpression = accessedExpression;
     MapElements();
 }
Ejemplo n.º 4
0
 internal ModifiedVariableMapper(IIdentifierElementFinder elementFinder, Identifier identifier,
                                 IExpression modifiedExpression)
 {
     _identifier         = identifier;
     _modifiedExpression = modifiedExpression;
     _elementFinder      = elementFinder;
     MapElements();
 }
Ejemplo n.º 5
0
        internal VariableMapperBridge(IIdentifierElementFinder elementFinder, IParentReferenceResolver parent,
                                      IVariableMappingStrategy mappingStrategy)

        {
            _elementFinder   = elementFinder;
            _parent          = parent;
            _mappingStrategy = mappingStrategy;
            _mappingStrategy.SetParent(_parent);
            MapElements();
        }
 internal ClassInstanceFieldMapper(IIdentifierElementFinder elementFinder, Identifier identifier) : base(
         elementFinder, identifier)
 {
 }
 internal ClassStaticFieldMapper(IIdentifierElementFinder elementFinder, Identifier identifier) : base(
         elementFinder, identifier)
 {
 }
Ejemplo n.º 8
0
 internal LocalVariableMapper(IIdentifierElementFinder elementFinder, Identifier identifier)
 {
     _identifier    = identifier;
     _elementFinder = elementFinder;
     MapElements();
 }
 private IAstMapper <IExpression> LocalVariableMapper(IIdentifierElementFinder elementFinder,
                                                      Identifier identifier)
 {
     return(new LocalVariableMapper(elementFinder, identifier));
 }
 private IAstMapper <IExpression> ClassStaticFieldMapper(IIdentifierElementFinder elementFinder,
                                                         Identifier identifier)
 {
     return(new ClassStaticFieldMapper(elementFinder, identifier));
 }
        public IAstMapper <IExpression> GetMapper(IIdentifierElementFinder elementFinder, Identifier identifier)
        {
            var expressionType = Parent.ResolveType(identifier);

            return(_mapperFactory[expressionType].Invoke(elementFinder, identifier));
        }
Ejemplo n.º 12
0
        public IAstMapper <IExpression> GetMapper(IIdentifierElementFinder elementFinder, Identifier identifier)
        {
            var accessedMember = Parent.FindMember(identifier);

            return(new AccessedVariableMapper(elementFinder, identifier, accessedMember));
        }
Ejemplo n.º 13
0
 protected FieldMapperBase(IIdentifierElementFinder elementFinder, Identifier identifier)
 {
     _identifier    = identifier;
     _elementFinder = elementFinder;
     MapElements();
 }