Пример #1
0
 override public void VisitDirectStFldUse(DirectStFldUse x)
 {
     _serializer.StartSerialize(typeof(DirectStFldUse).Name, SerializeSpan(x.Span),
                                new NodeObj("PropertyName", x.PropertyName.Value));
     base.VisitDirectStFldUse(x);
     _serializer.EndSerialize();
 }
Пример #2
0
        public override void VisitDirectStFldUse(DirectStFldUse x)
        {
            var indirectType = x.TypeRef as IndirectTypeRef;

            if (indirectType == null)
            {
                Result(new StaticFieldPoint(x));
            }
            else
            {
                var typeName = CreateRValue(indirectType);
                Result(new StaticFieldPoint(x, typeName));
            }
        }
Пример #3
0
 public override void VisitDirectStFldUse(DirectStFldUse x)
 {
     VisitElement(x.TargetType);
     ConsumeToken(Tokens.T_DOUBLE_COLON, "::");
     VisitVariableName(x.PropertyName, x.NameSpan, true);  // $name
 }
Пример #4
0
 virtual public void VisitDirectStFldUse(DirectStFldUse x)
 {
     VisitElement(x.TargetType);
 }
Пример #5
0
 public override void VisitDirectStFldUse(DirectStFldUse x)
 {
     //Force traversing
     VisitElement(x.IsMemberOf);
     VisitElement(x.TypeRef);
 }
Пример #6
0
 private static StaticFieldAccessExpression ToStaticFieldUseExpression(DirectStFldUse e)
 {
     return(new StaticFieldAccessExpression(ToNameOfVariable(e.PropertyName), FromTypeRef(e.TargetType)));
 }
Пример #7
0
 override public void VisitDirectStFldUse(DirectStFldUse x)
 {
     result = new DirectStFldUse(x.Position, x.TypeRef, x.PropertyName, x.NamePosition);
 }
Пример #8
0
 internal StaticFieldPoint(DirectStFldUse field, ValuePoint typeName)
 {
     Field     = field;
     FieldName = new VariableIdentifier(field.PropertyName);
     Self      = typeName;
 }
Пример #9
0
 internal StaticFieldPoint(DirectStFldUse field)
 {
     Field     = field;
     FieldName = new VariableIdentifier(field.PropertyName);
     Self      = null;
 }