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