Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 public MethodTypingContext(FAMIX.Method method, IMethodSymbol relatedSymbol) : base(relatedSymbol.ReturnType)
 {
     this.method = method;
 }
Ejemplo n.º 4
0
 public static TypingContext Method(FAMIX.Method method, IMethodSymbol relatedSymbol)
 {
     return(new MethodTypingContext(method, relatedSymbol));
 }
Ejemplo n.º 5
0
 public void AddMethod(FAMIX.Method one)
 {
     methods.Add(one);
     one.parentType = this;
 }
Ejemplo n.º 6
0
 public void AddMethod(FAMIX.Method one)
 {
     methods.Add(one);
 }