Exemplo n.º 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();
        }
Exemplo n.º 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;
 }
Exemplo n.º 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;
        }