Пример #1
0
 public static UnifiedType Create(string name)
 {
     // new[] の場合,NameExpressionがnullなUnifiedSimpleTypeを生成する.
     return(new UnifiedBasicType {
         BasicTypeName = name != null
                                                                 ? UnifiedVariableIdentifier.Create(
             name)
                                                                 : null,
     });
 }
Пример #2
0
 public static UnifiedImport Create(
     UnifiedExpression name   = null, string alias = null,
     UnifiedExpression member = null,
     UnifiedSet <UnifiedModifier> modifiers = null)
 {
     return(new UnifiedImport {
         Member = member,
         Name = name,
         Alias = alias != null
                                                         ? UnifiedVariableIdentifier.Create(alias)
                                                         : null,
         Modifiers = modifiers,
     });
 }