示例#1
0
        protected internal override void CheckSemantics(AstHelper astHelper)
        {
            base.CheckSemantics(astHelper);

            FieldName.CheckSemantics(astHelper);
            TypeName.CheckSemantics(astHelper);
        }
        protected internal override void CheckSemantics(AstHelper astHelper)
        {
            base.CheckSemantics(astHelper);
            FieldName.CheckSemantics(astHelper);

            var error = new FieldNotFoundError(Target.Type, FieldName.Name, Start);

            _type = !astHelper.Errors.Check(error)
                        ? error.PropertyType
                        : typeof(Null);
        }