Exemple #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();
 }
Exemple #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));
            }
        }
Exemple #3
0
 public override void VisitDirectStFldUse(DirectStFldUse x)
 {
     VisitElement(x.TargetType);
     ConsumeToken(Tokens.T_DOUBLE_COLON, "::");
     VisitVariableName(x.PropertyName, x.NameSpan, true);  // $name
 }
Exemple #4
0
 virtual public void VisitDirectStFldUse(DirectStFldUse x)
 {
     VisitElement(x.TargetType);
 }
Exemple #5
0
 public override void VisitDirectStFldUse(DirectStFldUse x)
 {
     //Force traversing
     VisitElement(x.IsMemberOf);
     VisitElement(x.TypeRef);
 }
 private static StaticFieldAccessExpression ToStaticFieldUseExpression(DirectStFldUse e)
 {
     return(new StaticFieldAccessExpression(ToNameOfVariable(e.PropertyName), FromTypeRef(e.TargetType)));
 }
Exemple #7
0
 override public void VisitDirectStFldUse(DirectStFldUse x)
 {
     result = new DirectStFldUse(x.Position, x.TypeRef, x.PropertyName, x.NamePosition);
 }
Exemple #8
0
 internal StaticFieldPoint(DirectStFldUse field, ValuePoint typeName)
 {
     Field     = field;
     FieldName = new VariableIdentifier(field.PropertyName);
     Self      = typeName;
 }
Exemple #9
0
 internal StaticFieldPoint(DirectStFldUse field)
 {
     Field     = field;
     FieldName = new VariableIdentifier(field.PropertyName);
     Self      = null;
 }