コード例 #1
0
 public CILVariableDecl(SourceInfo sourceInfo, CILType type, int pointerDepth, string name, CILExpression assigningValue, bool isStatic = false)
     : base(sourceInfo)
 {
     IsStatic       = isStatic;
     Type           = type;
     PointerDepth   = pointerDepth;
     Name           = name;
     AssigningValue = assigningValue;
 }
コード例 #2
0
ファイル: CILFunction.cs プロジェクト: traplol/langlanglang
 internal CILFunction(SourceInfo sourceInfo, string name, CILType returnType, int returnPointerDepth, List <CILVariableDecl> @params, bool isVarArgs)
     : base(sourceInfo, name, false)
 {
     ReturnType         = returnType;
     ReturnPointerDepth = returnPointerDepth;
     Params             = @params;
     IsVarArgs          = isVarArgs;
     Body = new List <CILNode>();
 }
コード例 #3
0
ファイル: CILFunction.cs プロジェクト: traplol/langlanglang
 internal CILFunction(SourceInfo sourceInfo, string name, CILType returnType, int returnPointerDepth, List <CILVariableDecl> @params, bool isVarArgs, List <CILNode> body)
     : base(sourceInfo, name, false)
 {
     ReturnType         = returnType;
     ReturnPointerDepth = returnPointerDepth;
     Params             = @params;
     Body           = body;
     IsVarArgs      = isVarArgs;
     HasBeenDefined = false;
 }
コード例 #4
0
 public CILFixedArray(SourceInfo sourceInfo, CILType type, int pointerDepth, string name, int size, bool isStatic = false)
     : base(sourceInfo, type, pointerDepth, name, isStatic)
 {
     Size = size;
 }