public LocalVariableDeclarationCompiler(ILocalVariableDeclaration localVariableDeclaration, AbstractILCompilerParams @params) : base(@params) { myLocalVariableDeclaration = localVariableDeclaration; var variableName = myLocalVariableDeclaration.DeclaredName; myLocalVariableReference = MyParams.LocalVariableIndexer.GetNextVariable(variableName); }
public VariableDeclarationCompiler(IVariableDeclaration variableDeclaration, AbstractILCompilerParams @params) : base(@params) { myVariableDeclaration = variableDeclaration; var variableName = myVariableDeclaration.DeclaredName; try { MyParams.LocalVariableIndexer.GetNextVariable(variableName); } catch (Exception e) { throw MyParams.CreateException($"var stacks exception"); } }
public BaseExpressionCompiler(IBaseExpression baseExpression, AbstractILCompilerParams @params) : base(@params) { myBaseExpression = baseExpression; }
public ThisExpressionCompiler(IThisExpression thisExpression, AbstractILCompilerParams @params) : base(@params) { myThisExpression = thisExpression; }
public AccessorDeclarationCompiler(IAccessorDeclaration accessor, AbstractILCompilerParams myParams) : base(myParams) { myAccessor = accessor; MyParams.CreateMethod(accessor.DeclaredElement); }
public ObjectCreationExpressionCompiler(IObjectCreationExpression objectCreationExpression, AbstractILCompilerParams @params) : base(@params) { myObjectCreationExpression = objectCreationExpression; }
public EnumDeclarationCompiler(IEnumDeclaration enumDeclaration, AbstractILCompilerParams myParams) : base(myParams) { myEnumDeclaration = enumDeclaration; myParams.CreateClass(myEnumDeclaration.DeclaredElement.GetClrName().FullName); }
public ConstantDeclarationCompiler(IConstantDeclaration constantDeclaration, AbstractILCompilerParams @params) : base(@params) { myConstantDeclaration = constantDeclaration; }
public ClassLikeDeclarationCompiler(IClassLikeDeclaration classLikeDeclaration, AbstractILCompilerParams myParams) : base(myParams) { myClassLikeDeclaration = classLikeDeclaration; var newClass = myParams.CreateClass(myClassLikeDeclaration.DeclaredElement.GetClrName().FullName); if (myClassLikeDeclaration is IClassDeclaration classDeclaration) { var baseClass = new ClassId(classDeclaration.DeclaredElement.GetBaseClassType().GetClrName().FullName); newClass.BaseClass = baseClass; } }