예제 #1
0
 public ThrownException CreateExceptionFor(ITypeSymbol symbolInfo, FAMIX.Method method)
 {
     FAMIX.ThrownException thrownException = this.CreateNewEntity <FAMIX.ThrownException>(typeof(FAMIX.ThrownException).FullName);
     thrownException.definingMethod = method;
     thrownException.exceptionClass = (FAMIX.Class) this.EnsureType(symbolInfo);
     return(thrownException);
 }
예제 #2
0
 private void ConfigureMethodWith(FAMIX.Method FamixMethod, IMethodSymbol method)
 {
     FamixMethod.isStub        = true;
     FamixMethod.name          = helper.FullMethodName(method);
     FamixMethod.Modifiers     = method.RefCustomModifiers.Select(p => p.Modifier.Name).ToList();
     FamixMethod.signature     = helper.MethodSignature(method);
     FamixMethod.accessibility = helper.AccessibilityName(method.DeclaredAccessibility);
     FamixMethod.kind          = helper.MethodKindName(method.MethodKind);
 }
예제 #3
0
 public MethodTypingContext(FAMIX.Method method, IMethodSymbol relatedSymbol) : base(relatedSymbol.ReturnType)
 {
     this.method = method;
 }
예제 #4
0
 public static TypingContext Method(FAMIX.Method method, IMethodSymbol relatedSymbol)
 {
     return(new MethodTypingContext(method, relatedSymbol));
 }
예제 #5
0
 public void AddMethod(FAMIX.Method one)
 {
     methods.Add(one);
     one.parentType = this;
 }
예제 #6
0
 public void AddMethod(FAMIX.Method one)
 {
     methods.Add(one);
 }