コード例 #1
0
 public MethodCallExpression(string name, CsType csType)
 {
     this.name = name;
     this.caller = csType;
     IsStaticMethodCall = true;
     parameters = new List<Expression>();
     genericArgumentTypes = new List<CsType>();
 }
コード例 #2
0
        public ConstructorStatement(CsType type, BlockStatement block)
        {
            AccessModifier = AccessModifier.Public;

            this.type = type;
            body = block;
            parameterList = new ParameterListStatement();
            baseParameters = new List<Expression>();
        }
コード例 #3
0
 public static CastExpression CastTo(this Expression expression, CsType type)
 {
     return new CastExpression(expression, type);
 }
コード例 #4
0
 public static DeclarationStatement OfType(this DeclarationStatement declarationStatement, CsType type)
 {
     declarationStatement.Type = type;
     return declarationStatement;
 }
コード例 #5
0
 public static ConstructorStatement Param(this ConstructorStatement constructorStatement, string name, CsType type)
 {
     constructorStatement.AddParam(new ParameterStatement(name, type));
     return constructorStatement;
 }
コード例 #6
0
 public static ClassStatement Inherits(this ClassStatement classStatement, CsType baseType)
 {
     classStatement.Base = baseType;
     return classStatement;
 }
コード例 #7
0
 public static FieldStatement OfType(this FieldStatement fieldStatement, CsType type)
 {
     fieldStatement.FieldType = type;
     return fieldStatement;
 }
コード例 #8
0
 public AttributeStatement(CsType type)
 {
     this.type = type;
     parameters = new List<Expression>();
 }
コード例 #9
0
ファイル: CastExpression.cs プロジェクト: jorgehmv/CsBuilder
 public CastExpression(Expression castedExpression, CsType type)
 {
     this.castedExpression = castedExpression;
     this.type = type;
 }
コード例 #10
0
 public static MethodStatement Param(this MethodStatement methodStatement, string name, CsType type)
 {
     methodStatement.AddParam(new ParameterStatement(name, type));
     return methodStatement;
 }
コード例 #11
0
 public static MethodStatement OfType(this MethodStatement methodStatement, CsType type)
 {
     methodStatement.ReturnType = type;
     return methodStatement;
 }
コード例 #12
0
 public static PropertyStatement OfType(this PropertyStatement propertyStatement, CsType type)
 {
     propertyStatement.ReturnType = type;
     return propertyStatement;
 }
コード例 #13
0
ファイル: DictionaryType.cs プロジェクト: jorgehmv/CsBuilder
 public DictionaryType(CsType keyType, CsType valueType)
     : base("IDictionary", keyType, valueType)
 {
 }
コード例 #14
0
 public void AddGenericArgument(CsType argument)
 {
     genericArgumentTypes.Add(argument);
 }
コード例 #15
0
ファイル: Cs.cs プロジェクト: jorgehmv/CsBuilder
 public static CsType List(CsType type)
 {
     return new ListType(type);
 }
コード例 #16
0
ファイル: NullableType.cs プロジェクト: jorgehmv/CsBuilder
 public NullableType(CsType genericArgumentType)
     : base("Nullable", genericArgumentType)
 {
     GenericArgumentType = genericArgumentType;
 }
コード例 #17
0
ファイル: Cs.cs プロジェクト: jorgehmv/CsBuilder
 public static ParameterStatement Param(string name, CsType type)
 {
     return new ParameterStatement(name, type);
 }
コード例 #18
0
ファイル: ClassStatement.cs プロジェクト: jorgehmv/CsBuilder
 public void AddInterface(CsType type)
 {
     interfaces.Add(type);
 }
コード例 #19
0
 public ParameterStatement(string name, CsType type)
     : base(new ReferenceExpression(name), type)
 {
     attributes = new List<AttributeStatement>();
 }
コード例 #20
0
 public TypeOfExpression(CsType type)
 {
     this.type = type;
 }
コード例 #21
0
ファイル: ListType.cs プロジェクト: jorgehmv/CsBuilder
 public ListType(CsType genericArgumentType)
     : base("IList", genericArgumentType)
 {
 }
コード例 #22
0
ファイル: Cs.cs プロジェクト: jorgehmv/CsBuilder
 public static TypeOfExpression TypeOf(CsType type)
 {
     return new TypeOfExpression(type);
 }
コード例 #23
0
 public static ClassStatement Implements(this ClassStatement classStatement, CsType interfaceType)
 {
     classStatement.AddInterface(interfaceType);
     return classStatement;
 }
コード例 #24
0
ファイル: Cs.cs プロジェクト: jorgehmv/CsBuilder
 public static DefaultExpression Default(CsType type)
 {
     return new DefaultExpression(type);
 }
コード例 #25
0
ファイル: IEnumerableType.cs プロジェクト: jorgehmv/CsBuilder
 public IEnumerableType(CsType genericArgumentType)
     : base("IEnumerable", genericArgumentType)
 {
 }
コード例 #26
0
ファイル: Cs.cs プロジェクト: jorgehmv/CsBuilder
 public static CsType Dictionary(CsType keyType, CsType valueType)
 {
     return new DictionaryType(keyType, valueType);
 }
コード例 #27
0
ファイル: NewExpression.cs プロジェクト: jorgehmv/CsBuilder
 public NewExpression(CsType type)
 {
     this.type = type;
     parameters = new List<Expression>();
     initializer = new CollectionInitializerExpression();
 }
コード例 #28
0
ファイル: Cs.cs プロジェクト: jorgehmv/CsBuilder
 public static GenericType IEnumerableOf(CsType argumentType)
 {
     return new IEnumerableType(argumentType);
 }
コード例 #29
0
 public DeclarationStatement(ReferenceExpression name, CsType type)
 {
     declaredVar = name;
     Type = type;
 }
コード例 #30
0
 public DefaultExpression(CsType type)
 {
     this.type = type;
 }