AjTalk.Tests.Compiler.SimpleCompilerTests.CompileMethodWithLocals C# (CSharp) Method

CompileMethodWithLocals() private method

private CompileMethodWithLocals ( ) : void
return void
        public void CompileMethodWithLocals()
        {
            Machine machine = new Machine();
            IClass cls = machine.CreateClass("Rectangle");
            cls.DefineInstanceVariable("x");
            var method = this.compiler.CompileInstanceMethod("x | temp | temp := x. ^temp", cls);
            Assert.IsNotNull(method);
            Assert.IsNotNull(method.ByteCodes);
        }
SimpleCompilerTests