public static MethodStream_Item methodStreamItem(this Saved_MethodStream savedMethodStream, O2MappedAstData astData, IField iField)
        {
            var methodStreamItem = savedMethodStream.methodStreamItem(iField);

            methodStreamItem.ItemType = MethodStream_ItemType.Field;
            var fieldDeclaration = astData.fieldDeclaration(iField);

            if (fieldDeclaration.notNull())
            {
                methodStreamItem.Location = new Ast_Location(fieldDeclaration);
            }
            return(methodStreamItem);
        }
Esempio n. 2
0
 public static MethodStream_Item methodStreamItem(this Saved_MethodStream savedMethodStream, O2MappedAstData astData,  IField iField)
 {
     var methodStreamItem = savedMethodStream.methodStreamItem(iField);
     methodStreamItem.ItemType = MethodStream_ItemType.Field;
     var fieldDeclaration = astData.fieldDeclaration(iField);
     if (fieldDeclaration.notNull())
         methodStreamItem.Location = new Ast_Location(fieldDeclaration);
     return methodStreamItem;
 }