public StructSyntax(string pName, string pPrefix, IList <string> pTypeArgs, IList <FieldDeclarationSyntax> pFields, BlockSyntax pInitializer) { Name = pName; Prefix = pPrefix; TypeArgs = pTypeArgs; Fields = pFields; foreach (var f in Fields) { f.Parent = this; } Initializer = pInitializer; if (Initializer != null) { Initializer.Parent = this; } }
public InitializerInfo(Syntax.BlockSyntax pBlock) { _block = pBlock; }
public static StructSyntax Struct(string pName, string pPrefix, IList <string> pTypeArgs, IList <FieldDeclarationSyntax> pFields, BlockSyntax pInitializer) { return(new StructSyntax(pName, pPrefix, pTypeArgs, pFields, pInitializer)); }
public static ForSyntax For(DeclarationStatementSyntax pDeclaration, ExpressionSyntax pCondition, SyntaxNode pPostLoop, BlockSyntax pBody) { return(new ForSyntax(pDeclaration, pCondition, pPostLoop, pBody)); }
public static WhileSyntax While(ExpressionSyntax pCondition, BlockSyntax pBody) { return(new WhileSyntax(pCondition, pBody)); }
public static ElseSyntax Else(IfSyntax pIf, BlockSyntax pBody) { return(new ElseSyntax(pIf, pBody)); }
public static IfSyntax If(ExpressionSyntax pCondition, BlockSyntax pBlock, ElseSyntax pElse) { return(new IfSyntax(pCondition, pBlock, pElse)); }
public static CastSyntax Cast(ParameterSyntax pParameter, ReturnValueSyntax pReturnValue, BlockSyntax pBody) { return(new CastSyntax(pParameter, pReturnValue, pBody)); }
public static MethodSyntax Method(string pName, IList <ParameterSyntax> pParameters, IList <ReturnValueSyntax> pReturnValues, BlockSyntax pBody, bool pIsExtern) { return(new MethodSyntax(pName, pParameters, pReturnValues, pBody, pIsExtern)); }