Пример #1
0
        public AstHelper(ModuleBuilder moduleBuilder)
        {
            ModuleBuilder = moduleBuilder;
            Expecting = new Expecting();
            Functions = new FunctionScope();
            Variables = new VariableScope();
            Types = new TypeScope();
            Errors = new ErrorSet();

            ReturnScope = new ReturnScope();
        }
Пример #2
0
        public AstHelper(ModuleBuilder moduleBuilder)
        {
            ModuleBuilder = moduleBuilder;
            Expecting     = new Expecting();
            Functions     = new FunctionScope();
            Variables     = new VariableScope();
            Types         = new TypeScope();
            Errors        = new ErrorSet();

            ReturnScope = new ReturnScope();
        }
 public ExpectingTypeError(SourceLocation location, Expecting expecting)
     : base(location)
 {
     _expecting = expecting;
 }
Пример #4
0
        protected internal override void CheckSemantics(AstHelper astHelper)
        {
            base.CheckSemantics(astHelper);

            _expecting = astHelper.Expecting;
        }
        protected internal override void CheckSemantics(AstHelper astHelper)
        {
            base.CheckSemantics(astHelper);

            _expecting = astHelper.Expecting;
        }